[Devel] [Kaboom at OH] Error (EXTERNAL IP): /people/
Asheesh Laroia
asheesh at openhatch.org
Tue Feb 23 17:11:11 UTC 2010
fixed -- if haystack gives us back a result that has no corresponding person,
we do not try to find that person on the map.
Excerpts from mr_website's message of Tue Feb 23 17:09:34 UTC 2010:
> Traceback (most recent call last):
>
> File
> "/home/deploy/milestone-a.buildout/parts/production/django/core/handlers/base.py
> ", line 92, in get_response
> response = callback(request, *callback_args, **callback_kwargs)
>
> File "<string>", line 2, in people
>
> File "/home/deploy/milestone-a.buildout/mysite/base/decorators.py", line 13,
> in view
> request, template, view_data = func(*args, **kw)
>
> File "/home/deploy/milestone-a.buildout/mysite/profile/views.py", line 485,
> in people
> everybody, extra_data = query2results(parsed_query)
>
> File "/home/deploy/milestone-a.buildout/mysite/profile/views.py", line 409,
> in query2results
> return query_type2executor[desired_query_type](parsed_query)
>
> File "/home/deploy/milestone-a.buildout/mysite/profile/views.py", line 405,
> in thingamabob
> return tag_type_query2mappable_orm_people(short_name, parsed_query)
>
> File "/home/deploy/milestone-a.buildout/mysite/profile/views.py", line 338,
> in tag_type_query2mappable_orm_people
> mappable_people = sorted(mappable_people, key=lambda p:
> p.user.username.lower())
>
> File "/home/deploy/milestone-a.buildout/mysite/profile/views.py", line 338,
> in <lambda>
> mappable_people = sorted(mappable_people, key=lambda p:
> p.user.username.lower())
>
> AttributeError: 'NoneType' object has no attribute 'user'
>
>
> <WSGIRequest
> GET:<QueryDict: {u'q': [u'can_mentor:"Python"']}>,
> POST:<QueryDict: {}>,
> COOKIES:{'openid_provider': 'google', 'sessionid':
> 'ffb6ed73aaed8c019d93c250d7c15f5c'},
> META:{'DOCUMENT_ROOT': '/var/www/',
> 'GATEWAY_INTERFACE': 'CGI/1.1',
> 'HTTPS': '1',
> 'HTTP_ACCEPT':
> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
> 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
> 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
> 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
> 'HTTP_CONNECTION': 'keep-alive',
> 'HTTP_COOKIE': 'openid_provider=google;
> sessionid=ffb6ed73aaed8c019d93c250d7c15f5c',
> 'HTTP_HOST': 'openhatch.org',
> 'HTTP_KEEP_ALIVE': '300',
> 'HTTP_REFERER':
> 'https://openhatch.org/search/?q=&toughness=bitesize&language=',
> 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1)
> Gecko/20090704 Iceweasel/3.5 (Debian-3.5-0)',
> 'PATH': '/usr/local/bin:/usr/bin:/bin',
> 'PATH_INFO': u'/people/',
> 'PATH_TRANSLATED':
> '/home/deploy/milestone-a.buildout/bin/production.wsgi/people/',
> 'QUERY_STRING': 'q=can_mentor%3A%22Python%22',
> 'REMOTE_ADDR': '98.140.110.121',
> 'REMOTE_PORT': '46280',
> 'REQUEST_METHOD': 'GET',
> 'REQUEST_URI': '/people/?q=can_mentor%3A%22Python%22',
> 'SCRIPT_FILENAME': '/home/deploy/milestone-a.buildout/bin/production.wsgi',
> 'SCRIPT_NAME': u'',
> 'SERVER_ADDR': '74.207.229.254',
> 'SERVER_ADMIN': 'webmaster at localhost',
> 'SERVER_NAME': 'openhatch.org',
> 'SERVER_PORT': '443',
> 'SERVER_PROTOCOL': 'HTTP/1.1',
> 'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Debian) Server at openhatch.org
> Port 443</address>\n',
> 'SERVER_SOFTWARE': 'Apache/2.2.14 (Debian)',
> 'SSL_TLS_SNI': 'openhatch.org',
> 'mod_wsgi.application_group': 'openhatch.org|',
> 'mod_wsgi.callable_object': 'application',
> 'mod_wsgi.listener_host': '',
> 'mod_wsgi.listener_port': '443',
> 'mod_wsgi.process_group': 'live',
> 'mod_wsgi.reload_mechanism': '1',
> 'mod_wsgi.script_reloading': '1',
> 'mod_wsgi.version': (2, 5),
> 'wsgi.errors': <mod_wsgi.Log object at 0x8be1230>,
> 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object
> at 0x88f34e8>,
> 'wsgi.input': <mod_wsgi.Input object at 0x8be9138>,
> 'wsgi.multiprocess': True,
> 'wsgi.multithread': False,
> 'wsgi.run_once': False,
> 'wsgi.url_scheme': 'https',
> 'wsgi.version': (1, 0)}>
More information about the Devel
mailing list