When I clic "Users" and then click either apge three or four I get the below error message while debugging is turned on (http://sn50.com/users/?sort=karma&page=3)
:
Traceback Switch to copy-and-paste view
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/core/handlers/base.py in get_response
92. # Apply view middleware
93. for middleware_method in self._view_middleware:
94. response = middleware_method(request, callback, callback_args, callback_kwargs)
95. if response:
96. return response
97.
98. try:
99. response = callback(request, *callback_args, **callback_kwargs) ...
100. except Exception, e:
101. # If the view raised an exception, run it through exception
102. # middleware, and if the exception middleware returns a
103. # response, use that. Otherwise, reraise the exception.
104. for middleware_method in self._exception_middleware:
105. response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<forum.modules.decorators.DecoratableObject object at 0xa1ef8cc>
callback_args
()
callback_kwargs
{}
e
TemplateSyntaxError(u"Caught AttributeError while rendering: 'ActionRepute' object has no attribute 'extra'",)
exc_info
(<class 'django.template.TemplateSyntaxError'>, TemplateSyntaxError(u"Caught AttributeError while rendering: 'ActionRepute' object has no attribute 'extra'",), <traceback object at 0xa650f04>)
exceptions
<module 'django.core.exceptions' from '/home/noahqw/webapps/osqa_server/lib/python2.5/django/core/exceptions.pyc'>
middleware_method
<bound method TransactionMiddleware.process_exception of <django.middleware.transaction.TransactionMiddleware object at 0xa438b8c>>
receivers
[(<function _rollback_on_exception at 0x9e6fd14>, None)]
request
<WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>
resolver
<RegexURLResolver urls (None:None) ^/>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x99bd54c>
settings
<django.conf.LazySettings object at 0x9b4412c>
urlconf
'urls'
urlresolvers
<module 'django.core.urlresolvers' from '/home/noahqw/webapps/osqa_server/lib/python2.5/django/core/urlresolvers.pyc'>
* /home/noahqw/webapps/osqa_server/osqa/forum/modules/decorators.py in __call__
53. return e.ret
54.
55. res = self._callable(*args, **kwargs)
56.
57. if self._result_decoration:
58. for dec in self._result_decoration:
59. if dec._needs_params:
60. res = dec(res, *args, **kwargs) ...
61. else:
62. res = dec(res)
63.
64. return res
65.
66. class ReturnImediatelyException(Exception):
▶ Local vars
Variable Value
args
(<WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>,)
dec
<function decorated at 0xa12ad4c>
kwargs
{}
res
{'suser': '', 'tab': 'users', 'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...']}
self
<forum.modules.decorators.DecoratableObject object at 0xa1ef8cc>
* /home/noahqw/webapps/osqa_server/osqa/forum/views/decorators.py in decorated
25. if isinstance(context, HttpResponse):
26. return context
27.
28. if tab is not None:
29. context['tab'] = tab
30.
31. return render_to_response(context.pop('template', template), context,
32. context_instance=RequestContext(request)) ...
33.
34. if tabbed and tab and tab_title:
35. ui.register(ui.PAGE_TOP_TABS,
36. ui.PageTab(tab, tab_title, lambda: reverse(func.__name__), weight=weight))
37.
38. return decorate.result.withfn(decorated, needs_params=True)(func)
▶ Local vars
Variable Value
args
()
context
{'suser': '', 'tab': 'users', 'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...']}
kwargs
{}
request
<WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>
tab
'users'
template
'users/users.html'
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/shortcuts/__init__.py in render_to_response
13.
14. def render_to_response(*args, **kwargs):
15. """
16. Returns a HttpResponse whose content is filled with the result of calling
17. django.template.loader.render_to_string() with the passed arguments.
18. """
19. httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ...
21.
22. def redirect(to, *args, **kwargs):
23. """
24. Returns an HttpResponseRedirect to the apropriate URL for the arguments
25. passed.
26.
▶ Local vars
Variable Value
args
('users/users.html', {'suser': '', 'tab': 'users', 'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...']})
httpresponse_kwargs
{'mimetype': None}
kwargs
{'context_instance': [{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]}
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/loader.py in render_to_string
101. t = select_template(template_name)
102. else:
103. t = get_template(template_name)
104. if context_instance:
105. context_instance.update(dictionary)
106. else:
107. context_instance = Context(dictionary)
108. return t.render(context_instance) ...
109.
110. def select_template(template_name_list):
111. "Given a list of template names, returns the first that can be loaded."
112. for template_name in template_name_list:
113. try:
114. return get_template(template_name)
▶ Local vars
Variable Value
context_instance
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
dictionary
{'suser': '', 'tab': 'users', 'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...']}
t
<django.template.Template object at 0xa74514c>
template_name
'users/users.html'
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
158. def __iter__(self):
159. for node in self.nodelist:
160. for subnode in node:
161. yield subnode
162.
163. def render(self, context):
164. "Display stage -- can be called many times"
165. return self.nodelist.render(context) ...
166.
167. def compile_string(template_string, origin):
168. "Compiles template_string into NodeList ready for rendering"
169. if settings.TEMPLATE_DEBUG:
170. from debug import DebugLexer, DebugParser
171. lexer_class, parser_class = DebugLexer, DebugParser
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
self
<django.template.Template object at 0xa74514c>
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
777. # extend_nodelist().
778. contains_nontext = False
779.
780. def render(self, context):
781. bits = []
782. for node in self:
783. if isinstance(node, Node):
784. bits.append(self.render_node(node, context)) ...
785. else:
786. bits.append(node)
787. return mark_safe(''.join([force_unicode(b) for b in bits]))
788.
789. def get_nodes_by_type(self, nodetype):
790. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
[]
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
node
<ExtendsNode: extends "base_content.html">
self
[<ExtendsNode: extends "base_content.html">]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/debug.py in render_node
64. def compile_function_error(self, token, e):
65. if not hasattr(e, 'source'):
66. e.source = token.source
67.
68. class DebugNodeList(NodeList):
69. def render_node(self, node, context):
70. try:
71. result = node.render(context) ...
72. except TemplateSyntaxError, e:
73. if not hasattr(e, 'source'):
74. e.source = node.source
75. raise
76. except Exception, e:
77. from sys import exc_info
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
e
TemplateSyntaxError(u"Caught AttributeError while rendering: 'ActionRepute' object has no attribute 'extra'",)
node
<ExtendsNode: extends "base_content.html">
self
[<ExtendsNode: extends "base_content.html">]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/loader_tags.py in render
90. # the first non-text node you can stop looking.
91. break
92. else:
93. # Keep any existing parents and add a new one. Used by BlockNode.
94. parent_block.parent = block_node.parent
95. parent_block.add_parent(parent_block.nodelist)
96. parent_block.nodelist = block_node.nodelist
97. return compiled_parent.render(context) ...
98.
99. class ConstantIncludeNode(Node):
100. def __init__(self, template_path):
101. try:
102. t = get_template(template_path)
103. self.template = t
▶ Local vars
Variable Value
block_node
<Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>
compiled_parent
<django.template.Template object at 0xa74542c>
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
n
<Block Node: endjs. Contents: [<Text Node: ' '>]>
parent_block
<Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>
parent_blocks
{u'content': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, u'endjs': <Block Node: endjs. Contents: [<Text Node: ' '>]>, u'forejs': <Block Node: forejs. Contents: [<Text Node: ' <script type="tex'>, <Variable Node: tab_id>, <Text Node: '"; $("#sort_"'>]>, u'forestyle': <Block Node: forestyle. Contents: []>, u'fulltitle': <Block Node: fulltitle. Contents: [<Block Node: title. Contents: [<django.template.defaulttags.SpacelessNode object at 0xa745a2c>]>, <Text Node: ' - '>, <Variable Node: settings.APP_SHORT_NAME>]>, u'meta': <Block Node: meta. Contents: []>, u'metadescription': <Block Node: metadescription. Contents: [<Variable Node: settings.APP_DESCRIPTION>]>, u'metakeywords': <Block Node: metakeywords. Contents: [<Variable Node: settings.APP_KEYWORDS>]>, u'page_center': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>, u'tail': <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, u'title': <Block Node: title. Contents: [<django.template.defaulttags.SpacelessNode object at 0xa745a2c>]>}
self
<ExtendsNode: extends "base_content.html">
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
158. def __iter__(self):
159. for node in self.nodelist:
160. for subnode in node:
161. yield subnode
162.
163. def render(self, context):
164. "Display stage -- can be called many times"
165. return self.nodelist.render(context) ...
166.
167. def compile_string(template_string, origin):
168. "Compiles template_string into NodeList ready for rendering"
169. if settings.TEMPLATE_DEBUG:
170. from debug import DebugLexer, DebugParser
171. lexer_class, parser_class = DebugLexer, DebugParser
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
self
<django.template.Template object at 0xa74542c>
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
777. # extend_nodelist().
778. contains_nontext = False
779.
780. def render(self, context):
781. bits = []
782. for node in self:
783. if isinstance(node, Node):
784. bits.append(self.render_node(node, context)) ...
785. else:
786. bits.append(node)
787. return mark_safe(''.join([force_unicode(b) for b in bits]))
788.
789. def get_nodes_by_type(self, nodetype):
790. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
[u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\\n<!-- base_content.html -->\\n', '', u'\\n<html xmlns="http://www.w3.org/1999/xhtml">\\n <head>\\n <title>', u'Users - SN50', u'</title>\\n <meta name="description" content="', u'Ask and answer questions about various topics including: technology, gaming, life, politics, school and more. Get free answers and help others!', u'">\\n <meta name="keywords" content="', u'sn50, ask, answer, questions, questions, get answers, ask free questions, forum, help, support, tech help, tech support, math questions, c++ questions, c++ programming help, c# questions, c# programming help, python programming help, python help, python programming questions, help python', u'">\\n ', '', u'\\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\\n ', '', u'\\n <link rel="shortcut icon" href="', u'/upfiles/favicon(2)__.ico', u'" />\\n <link href="', u'/m/default/media/style/style.css', u'" rel="stylesheet" type="text/css" />\\n ', u'\\n <link href="/cstyle.css" rel="stylesheet" type="text/css" />\\n ', u'\\n ', '', u'\\n <script src="http://www.google.com/jsapi" type="text/javascript"></script>\\n <script type="text/javascript">google.load("jquery", "1.4.2");</script>\\n <script type="text/javascript">\\n /* <![CDATA[ */\\n var i18nLang = \\'', u'en', u"';\\n var scriptUrl = '/", u'', u"'\\n var osqaSkin = '", u'default', u"';\\n\\n var messages = {\\n username: '", u'', u'\\',\\n confirm: "', u'Are you sure?', u'",\\n yes: "', u'Yes', u'",\\n no: "', u'No', u'",\\n message: "', u'Message:', u'",\\n cancel: "', u'Cancel', u'",\\n close: "', u'Close', u'",\\n ok: "', u'Ok', u'",\\n matching_tags_url: "', '/matching_tags/', u'",\\n word: "', u'word', u'",\\n words: "', u'words', u'",\\n character: "', u'character', u'",\\n characters: "', u'characters', u'"\\n }\\n /* ]] */\\n </script>\\n <script type=\\'text/javascript\\' src=\\'', u'/m/default/media/js/osqa.main.js', u"'></script>\\n ", '', u'\\n ', u'\\n <script>\\r\\n$(function() {\\r\\n $(\\'.tags a:contains(droid)\\').prepend(\\'<img height="12" width="12" style="vertical-align: text-top; padding-right:4px" src="http://sstatic.net/stackoverflow/img/tag-android.png" />\\');\\r\\n});\\r\\n\\r\\n$(function() {\\r\\n $(\\'.tags a:contains(minecraft)\\').prepend(\\'<img height="12" width="12" style="vertical-align: text-top; padding-right:4px" src="http://c0485811.cdn.cloudfiles.rackspacecloud.com/a1ee47b2-8452-df11-82d2-0022190f5762_2267.png" />\\');\\r\\n});\\r\\n\\r\\n$(function() {\\r\\n $(\\'.tags a:contains(what)\\').prepend(\\'<img height="12" width="12" style="vertical-align: text-top; padding-right:4px" src="https://learningcenter.myicourse.com/images/blue_question_mark.png?1265255190" />\\');\\r\\n});\\r\\n\\r\\n$(function() {\\r\\n $(\\'.tags a:contains(server)\\').prepend(\\'<img height="12" width="12" style="vertical-align: text-top; padding-right:4px" src="http://www.mailsite.com/icons/server_network.gif" />\\');\\r\\n});\\r\\n\\r\\n$(function() {\\r\\n $(\\'.tags a:contains(port)\\').prepend(\\'<img height="12" width="12" style="vertical-align: text-top; padding-right:4px" src="http://www.fabulatech.com/img/sps/sps-icon-48-blue.gif" />\\');\\r\\n});\\r\\n</script>\\r\\n\\r\\n<meta name="google-site-verification" content="Xn8XlO0tqAp3R2BPQhVt-sKUdbh5EBx0VBMVOij8dHs" />\\r\\n<script type="text/javascript">\\r\\n\\r\\n var _gaq = _gaq || [];\\r\\n _gaq.push([\\'_setAccount\\', \\'UA-8120665-4\\']);\\r\\n _gaq.push([\\'_trackPageview\\']);\\r\\n\\r\\n (function() {\\r\\n var ga = document.createElement(\\'script\\'); ga.type = \\'text/javascript\\'; ga.async = true;\\r\\n ga.src = (\\'https:\\' == document.location.protocol ? \\'https://ssl\\' : \\'http://www\\') + \\'.google-analytics.com/ga.js\\';\\r\\n var s = document.getElementsByTagName(\\'script\\')[0]; s.parentNode.insertBefore(ga, s);\\r\\n })();\\r\\n\\r\\n</script>\\r\\n\\r\\n\\n ', u'\\n ', u'\\n <script type="text/javascript">\\n\\t //todo move javascript out\\n $().ready(function(){\\n $("#type-user").attr(\\'checked\\',true);\\n var orderby = "";\\n $("#sort_" + orderby).attr(\\'className\\',"on");\\n \\n Hilite.exact = false;\\n Hilite.elementid = "main-body";\\n Hilite.debug_referrer = location.href;\\n });\\n </script>\\n', u'\\n <link rel="search" type="application/opensearchdescription+xml" href="', '/opensearch.xml', u'" title="', u'SN50', u' Search" />\\n ', '', u'\\n </head>\\n <body>\\n <div class="notify" style="display:none">\\n ', u'\\n \\n ', u'\\n <a id="close-notify" onclick="notify.close(true)">×</a>\\n </div>\\n ', u'\\n <div id="custom_header">\\n <meta name="google-site-verification" content="Xn8XlO0tqAp3R2BPQhVt-sKUdbh5EBx0VBMVOij8dHs" />\\n </div>\\n ', u'\\n ', u'<!-- template header.html -->\\n\\n\\n\\t<div id="roof">\\n\\t \\n\\t\\t<div id="logo">\\n\\t\\t\\t<a href="/">\\n\\t\\t\\t\\t<img src="/upfiles/logo____.png" title="back to home page" alt="SN50 Answers - Ask and Answer Questions logo"/>\\n\\t\\t\\t</a>\\n\\t\\t</div>\\n\\t \\n\\t\\t<div id="top">\\n\\t\\t <a href="/account/signin/" >login</a> <a href="/about/" >about</a> <a href="/faq/" >faq</a> \\n\\t\\t</div>\\n\\n <div id="nav">\\n <a id="nav_questions" href="/questions/" >questions</a><a id="nav_tags" href="/tags/" >tags</a><a id="nav_users" class="on" href="/users/" >users</a><a id="nav_badges" href="/badges/" >badges</a><a id="nav_unanswered" href="/questions/unanswered/" >unanswered</a>\\n <a id="nav_ask" href="/questions/ask/" class="special">ask a question</a>\\n </div>\\n </div>\\n\\n <div class="clear"></div>\\n \\n\\t<div id="searchBar">\\n <form action="/search/" method="get">\\n <div>\\n <input type="text" class="searchInput" value="" name="q" id="keywords" />\\n <input type="submit" name="Submit" value="search" class="searchBtn" />\\n </div>\\n <div class="options">\\n <input id="type-question" type="radio" value="question" name="t" \\n checked="checked" /><label for="type-question">questions</label>\\n <input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">tags</label>\\n <input id="type-user" type="radio" value="user" name="t" /><label for="type-user">users</label>\\n </div>\\n </form>\\t\\n\\t</div>\\n\\n\\t\\n\\n<!-- end template header.html -->\\n', u'\\n ']
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
node
<Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>
self
[<Text Node: '<!DOCTYPE html PUBLIC "-/'>, <django.template.defaulttags.LoadNode object at 0xa72a8ac>, <Text Node: ' <html xmlns="http://www.'>, <Block Node: fulltitle. Contents: [<Block Node: title. Contents: [<django.template.defaulttags.SpacelessNode object at 0xa745a2c>]>, <Text Node: ' - '>, <Variable Node: settings.APP_SHORT_NAME>]>, <Text Node: '</title> <meta na'>, <Block Node: metadescription. Contents: [<Variable Node: settings.APP_DESCRIPTION>]>, <Text Node: '"> <meta name="ke'>, <Block Node: metakeywords. Contents: [<Variable Node: settings.APP_KEYWORDS>]>, <Text Node: '"> '>, <Block Node: meta. Contents: []>, <Text Node: ' <meta http-equiv'>, <If node>, <Text Node: ' <link rel="short'>, <Variable Node: settings.APP_FAVICON>, <Text Node: '" /> <link href="'>, <django.template.SimpleNode object at 0xa57162c>, <Text Node: '" rel="stylesheet" type="'>, <If node>, <Text Node: ' '>, <Block Node: forestyle. Contents: []>, <Text Node: ' <script src="htt'>, <Variable Node: settings.LANGUAGE_CODE>, <Text Node: ''; var script'>, <Variable Node: settings.FORUM_SCRIPT_ALIAS>, <Text Node: '' var osqaSki'>, <Variable Node: settings.OSQA_SKIN>, <Text Node: ''; var messa'>, <Variable Node: user.username>, <Text Node: '', confir'>, <django.templatetags.i18n.TranslateNode object at 0xa5716ec>, <Text Node: '", yes: "'>, <django.templatetags.i18n.TranslateNode object at 0xa57116c>, <Text Node: '", no: "'>, <django.templatetags.i18n.TranslateNode object at 0xa57196c>, <Text Node: '", messag'>, <django.templatetags.i18n.TranslateNode object at 0xa571d4c>, <Text Node: '", cancel'>, <django.templatetags.i18n.TranslateNode object at 0xa56568c>, <Text Node: '", close:'>, <django.templatetags.i18n.TranslateNode object at 0xa565ccc>, <Text Node: '", ok: "'>, <django.templatetags.i18n.TranslateNode object at 0xa5652cc>, <Text Node: '", matchi'>, <django.template.defaulttags.URLNode object at 0xa565fac>, <Text Node: '", word: '>, <django.templatetags.i18n.TranslateNode object at 0xa565d2c>, <Text Node: '", words:'>, <django.templatetags.i18n.TranslateNode object at 0xa57b2ec>, <Text Node: '", charac'>, <django.templatetags.i18n.TranslateNode object at 0xa57bd8c>, <Text Node: '", charac'>, <django.templatetags.i18n.TranslateNode object at 0xa57b32c>, <Text Node: '" } /'>, <django.template.SimpleNode object at 0xa57b66c>, <Text Node: ''></script> '>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <Block Node: forejs. Contents: [<Text Node: ' <script type="tex'>, <Variable Node: tab_id>, <Text Node: '"; $("#sort_"'>]>, <Text Node: ' <link rel="searc'>, <django.template.defaulttags.URLNode object at 0xa589e0c>, <Text Node: '" title="'>, <Variable Node: settings.APP_SHORT_NAME>, <Text Node: ' Search" /> '>, <django.templatetags.ui_registry.LoadRegistryNode object at 0xa589bec>, <Text Node: ' </head> <body> '>, <django.template.defaulttags.AutoEscapeControlNode object at 0xa589dcc>, <Text Node: ' <a id="close'>, <If node>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0xa589a4c>, <Text Node: ' '>, <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <Block Node: endjs. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <If node>, <Text Node: ' </body> </html> <!--'>]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/debug.py in render_node
64. def compile_function_error(self, token, e):
65. if not hasattr(e, 'source'):
66. e.source = token.source
67.
68. class DebugNodeList(NodeList):
69. def render_node(self, node, context):
70. try:
71. result = node.render(context) ...
72. except TemplateSyntaxError, e:
73. if not hasattr(e, 'source'):
74. e.source = node.source
75. raise
76. except Exception, e:
77. from sys import exc_info
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
e
TemplateSyntaxError(u"Caught AttributeError while rendering: 'ActionRepute' object has no attribute 'extra'",)
node
<Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>
self
[<Text Node: '<!DOCTYPE html PUBLIC "-/'>, <django.template.defaulttags.LoadNode object at 0xa72a8ac>, <Text Node: ' <html xmlns="http://www.'>, <Block Node: fulltitle. Contents: [<Block Node: title. Contents: [<django.template.defaulttags.SpacelessNode object at 0xa745a2c>]>, <Text Node: ' - '>, <Variable Node: settings.APP_SHORT_NAME>]>, <Text Node: '</title> <meta na'>, <Block Node: metadescription. Contents: [<Variable Node: settings.APP_DESCRIPTION>]>, <Text Node: '"> <meta name="ke'>, <Block Node: metakeywords. Contents: [<Variable Node: settings.APP_KEYWORDS>]>, <Text Node: '"> '>, <Block Node: meta. Contents: []>, <Text Node: ' <meta http-equiv'>, <If node>, <Text Node: ' <link rel="short'>, <Variable Node: settings.APP_FAVICON>, <Text Node: '" /> <link href="'>, <django.template.SimpleNode object at 0xa57162c>, <Text Node: '" rel="stylesheet" type="'>, <If node>, <Text Node: ' '>, <Block Node: forestyle. Contents: []>, <Text Node: ' <script src="htt'>, <Variable Node: settings.LANGUAGE_CODE>, <Text Node: ''; var script'>, <Variable Node: settings.FORUM_SCRIPT_ALIAS>, <Text Node: '' var osqaSki'>, <Variable Node: settings.OSQA_SKIN>, <Text Node: ''; var messa'>, <Variable Node: user.username>, <Text Node: '', confir'>, <django.templatetags.i18n.TranslateNode object at 0xa5716ec>, <Text Node: '", yes: "'>, <django.templatetags.i18n.TranslateNode object at 0xa57116c>, <Text Node: '", no: "'>, <django.templatetags.i18n.TranslateNode object at 0xa57196c>, <Text Node: '", messag'>, <django.templatetags.i18n.TranslateNode object at 0xa571d4c>, <Text Node: '", cancel'>, <django.templatetags.i18n.TranslateNode object at 0xa56568c>, <Text Node: '", close:'>, <django.templatetags.i18n.TranslateNode object at 0xa565ccc>, <Text Node: '", ok: "'>, <django.templatetags.i18n.TranslateNode object at 0xa5652cc>, <Text Node: '", matchi'>, <django.template.defaulttags.URLNode object at 0xa565fac>, <Text Node: '", word: '>, <django.templatetags.i18n.TranslateNode object at 0xa565d2c>, <Text Node: '", words:'>, <django.templatetags.i18n.TranslateNode object at 0xa57b2ec>, <Text Node: '", charac'>, <django.templatetags.i18n.TranslateNode object at 0xa57bd8c>, <Text Node: '", charac'>, <django.templatetags.i18n.TranslateNode object at 0xa57b32c>, <Text Node: '" } /'>, <django.template.SimpleNode object at 0xa57b66c>, <Text Node: ''></script> '>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <Block Node: forejs. Contents: [<Text Node: ' <script type="tex'>, <Variable Node: tab_id>, <Text Node: '"; $("#sort_"'>]>, <Text Node: ' <link rel="searc'>, <django.template.defaulttags.URLNode object at 0xa589e0c>, <Text Node: '" title="'>, <Variable Node: settings.APP_SHORT_NAME>, <Text Node: ' Search" /> '>, <django.templatetags.ui_registry.LoadRegistryNode object at 0xa589bec>, <Text Node: ' </head> <body> '>, <django.template.defaulttags.AutoEscapeControlNode object at 0xa589dcc>, <Text Node: ' <a id="close'>, <If node>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0xa589a4c>, <Text Node: ' '>, <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <If node>, <Text Node: ' '>, <Block Node: endjs. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <If node>, <Text Node: ' </body> </html> <!--'>]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/loader_tags.py in render
17. return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
18.
19. def render(self, context):
20. context.push()
21. # Save context in case of block.super().
22. self.context = context
23. context['block'] = self
24. result = self.nodelist.render(context) ...
25. context.pop()
26. return result
27.
28. def super(self):
29. if self.parent:
30. return mark_safe(self.parent.render(self.context))
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
self
<Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
777. # extend_nodelist().
778. contains_nontext = False
779.
780. def render(self, context):
781. bits = []
782. for node in self:
783. if isinstance(node, Node):
784. bits.append(self.render_node(node, context)) ...
785. else:
786. bits.append(node)
787. return mark_safe(''.join([force_unicode(b) for b in bits]))
788.
789. def get_nodes_by_type(self, nodetype):
790. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
[u'\\n <div id="wrapper">\\n <div id="room">\\n <div id="CAFull">\\n ']
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
node
<Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>
self
[<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/debug.py in render_node
64. def compile_function_error(self, token, e):
65. if not hasattr(e, 'source'):
66. e.source = token.source
67.
68. class DebugNodeList(NodeList):
69. def render_node(self, node, context):
70. try:
71. result = node.render(context) ...
72. except TemplateSyntaxError, e:
73. if not hasattr(e, 'source'):
74. e.source = node.source
75. raise
76. except Exception, e:
77. from sys import exc_info
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
e
TemplateSyntaxError(u"Caught AttributeError while rendering: 'ActionRepute' object has no attribute 'extra'",)
node
<Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>
self
[<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/loader_tags.py in render
17. return "<Block Node: %s. Contents: %r>" % (self.name, self.nodelist)
18.
19. def render(self, context):
20. context.push()
21. # Save context in case of block.super().
22. self.context = context
23. context['block'] = self
24. result = self.nodelist.render(context) ...
25. context.pop()
26. return result
27.
28. def super(self):
29. if self.parent:
30. return mark_safe(self.parent.render(self.context))
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
self
<Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
777. # extend_nodelist().
778. contains_nontext = False
779.
780. def render(self, context):
781. bits = []
782. for node in self:
783. if isinstance(node, Node):
784. bits.append(self.render_node(node, context)) ...
785. else:
786. bits.append(node)
787. return mark_safe(''.join([force_unicode(b) for b in bits]))
788.
789. def get_nodes_by_type(self, nodetype):
790. "Return a list of all nodes of the given type"
▶ Local vars
Variable Value
bits
[u'\\n<div class="tabBar">\\n <div class="headUsers">', u'Users', u'</div>\\n ', u'\\n<div class="tabsA"><a href="/users/?sort=karma" class="on" title="sorted by reputation">karma</a><a href="/users/?sort=newest" title="newest members">recent</a><a href="/users/?sort=last" title="oldest members">oldest</a><a href="/users/?sort=name" title="sorted by username">by username</a></div>', u'\\n</div>\\n<div id="main-body" style="width:100%">\\n <p> \\n ', '', u'\\n \\n ', '', u'\\n </p>\\n <div class="userList">\\n ']
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
node
<For Node: for user in users.paginator.page, tail_len: 13>
self
[<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/debug.py in render_node
64. def compile_function_error(self, token, e):
65. if not hasattr(e, 'source'):
66. e.source = token.source
67.
68. class DebugNodeList(NodeList):
69. def render_node(self, node, context):
70. try:
71. result = node.render(context) ...
72. except TemplateSyntaxError, e:
73. if not hasattr(e, 'source'):
74. e.source = node.source
75. raise
76. except Exception, e:
77. from sys import exc_info
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
e
AttributeError("'ActionRepute' object has no attribute 'extra'",)
exc_info
<built-in function exc_info>
node
<For Node: for user in users.paginator.page, tail_len: 13>
self
[<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]
wrapped
TemplateSyntaxError(u"Caught AttributeError while rendering: 'ActionRepute' object has no attribute 'extra'",)
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/defaulttags.py in render
147. if unpack:
148. # If there are multiple loop variables, unpack the item into
149. # them.
150. context.update(dict(zip(self.loopvars, item)))
151. else:
152. context[self.loopvars[0]] = item
153. for node in self.nodelist_loop:
154. nodelist.append(node.render(context)) ...
155. if unpack:
156. # The loop variables were pushed on to the context so pop them
157. # off again. This is necessary because the tag lets the length
158. # of loopvars differ to the length of each set of items and we
159. # don't want to leave any vars from the previous loop on the
160. # context.
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
i
34
item
<User: Suezan>
len_values
35
loop_dict
{'counter': 35, 'counter0': 34, 'first': False, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0}
node
<django.template.SimpleNode object at 0xa5e508c>
nodelist
[u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/105/tr0j4nc0d3r/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/646b971bf44a60ef57240e62dceb6b6a?s=32&d=identicon&r=g" alt="Tr0j4nC0d3r\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/105/tr0j4nc0d3r/', u'">', u'Tr0j4nC0d3r', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/84/mysteriouskiwi/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/4ab790c96e6ace21d75c5d9a736743af?s=32&d=identicon&r=g" alt="MysteriousKiwi\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/84/mysteriouskiwi/', u'">', u'MysteriousKiwi', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/63/william-damron/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/e2b2fee563eedfdde7600ecccfc584b3?s=32&d=identicon&r=g" alt="William%20Damron\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/63/william-damron/', u'">', u'William Damron', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/106/freakxstealth/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/1a29592227e83a3f4207056cc550a997?s=32&d=identicon&r=g" alt="freakxstealth\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/106/freakxstealth/', u'">', u'freakxstealth', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/64/zymosis/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/efb95ff7e7766dd1c2b9b06ce16b7abe?s=32&d=identicon&r=g" alt="Zymosis\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/64/zymosis/', u'">', u'Zymosis', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/43/plzhelpme/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/4b5d64528037d0e83faf233ed1993b3e?s=32&d=identicon&r=g" alt="plzhelpme\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/43/plzhelpme/', u'">', u'plzhelpme', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/107/markjoseph11/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/15b45a46920edd2031cded48d7c20e3e?s=32&d=identicon&r=g" alt="markjoseph11\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/107/markjoseph11/', u'">', u'markjoseph11', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/65/tom-richardson/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/cb9adb7eb45424177b7469464aea2416?s=32&d=identicon&r=g" alt="Tom%20Richardson\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/65/tom-richardson/', u'">', u'Tom Richardson', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/44/airguitar123/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/1a65dd5c1143b688bed0aff2871e41c0?s=32&d=identicon&r=g" alt="Airguitar123\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/44/airguitar123/', u'">', u'Airguitar123', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/87/bluebreezz/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/3324ae9094e14b8b0b768313ef0d6259?s=32&d=identicon&r=g" alt="bluebreezz\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/87/bluebreezz/', u'">', u'bluebreezz', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/66/thawice/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/3ff28e9aa9c4ce5fa54c4d2afe67a77f?s=32&d=identicon&r=g" alt="thawice\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/66/thawice/', u'">', u'thawice', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/67/b0z0t7/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/e11af30cd0a3e0e647eeca754e00c1d6?s=32&d=identicon&r=g" alt="b0z0t7\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/67/b0z0t7/', u'">', u'b0z0t7', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/68/frogger/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/6f0563acd073668cef1ba4d56b42c047?s=32&d=identicon&r=g" alt="Frogger\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/68/frogger/', u'">', u'Frogger', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/69/another_onymous/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/fee55413361dacc4e1dd3848f20a9c79?s=32&d=identicon&r=g" alt="another_onymous\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/69/another_onymous/', u'">', u'another_onymous', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/70/x_fire/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/e6b1ce9a2d96b89f822138bb6bed6bfd?s=32&d=identicon&r=g" alt="x_fire\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/70/x_fire/', u'">', u'x_fire', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/49/fabricio-fernandes/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/6d24a79e6b4605b3c62c8571e546472c?s=32&d=identicon&r=g" alt="Fabricio%20Fernandes\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/49/fabricio-fernandes/', u'">', u'Fabricio Fernandes', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/71/thebigdil/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/cf3cc60a6a53452aacab9c9d712f2e01?s=32&d=identicon&r=g" alt="thebigdil\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/71/thebigdil/', u'">', u'thebigdil', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/51/macnsteez/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/8bebfe45dde8529cd534fbe184f50887?s=32&d=identicon&r=g" alt="macNsteez\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/51/macnsteez/', u'">', u'macNsteez', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/73/brokenzero32/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/99d889fded15cc9c381af60c75880bd2?s=32&d=identicon&r=g" alt="BrokenZero32\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/73/brokenzero32/', u'">', u'BrokenZero32', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span><span title="2 badges"><span class="bronze">●</span><span class="badgecount">2</span></span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/96/peabuger/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/3723227aa0869ddf84534b8b2e69ce15?s=32&d=identicon&r=g" alt="PEABUGER\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/96/peabuger/', u'">', u'PEABUGER', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/97/vjgv/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/4b9f5e224dbbf9e14cce8891224be35a?s=32&d=identicon&r=g" alt="vJGv\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/97/vjgv/', u'">', u'vJGv', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/76/geek_freak/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/32a244e6286da964e5ddd5c410e18c80?s=32&d=identicon&r=g" alt="geek_freak\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/76/geek_freak/', u'">', u'geek_freak', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/77/a5073/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/fecd0d529ae5b6aef03c0643548ba2d0?s=32&d=identicon&r=g" alt="a5073\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/77/a5073/', u'">', u'a5073', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/78/wil_chil/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/05b53f250778b53025dd8a82cea5a50b?s=32&d=identicon&r=g" alt="wil_chil\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/78/wil_chil/', u'">', u'wil_chil', u'</a></li>\\n <li>', u'<span class="score" title="10 karma">10</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/15/jason/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/1a93f0b462aeefe6856488f3b16bd489?s=32&d=identicon&r=g" alt="Jason\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/15/jason/', u'">', u'Jason', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/16/ownagedog/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/d2b25c94cd76e51e32959662d1619e15?s=32&d=identicon&r=g" alt="ownagedog\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/16/ownagedog/', u'">', u'ownagedog', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/17/aikoz/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/a2ffce46c7ad6618cf662a182636c593?s=32&d=identicon&r=g" alt="Aikoz\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/17/aikoz/', u'">', u'Aikoz', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/23/digitalxmedia/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/a2e8e5eae412c941a711eb19049c9de2?s=32&d=identicon&r=g" alt="DigitalXMedia\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/23/digitalxmedia/', u'">', u'DigitalXMedia', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/25/batmanfreak/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/afe2a008134494016167cc6fcc1f2bbf?s=32&d=identicon&r=g" alt="BatmanFreak\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/25/batmanfreak/', u'">', u'BatmanFreak', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/4/jkoke123/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/d04c9fd6fdcea80d070457179cebf837?s=32&d=identicon&r=g" alt="JKoke123\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/4/jkoke123/', u'">', u'JKoke123', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/7/chris_rainey/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/3c0580073fdc335fafde8fe5fc73fe7c?s=32&d=identicon&r=g" alt="chris_rainey\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/7/chris_rainey/', u'">', u'chris_rainey', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/34/nic0s411/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/05c7fa4b71a0269f4a7691e47e7e4ae2?s=32&d=identicon&r=g" alt="nic0s411\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/34/nic0s411/', u'">', u'nic0s411', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/13/rizkyy/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/299f5651b643c431f226e6f71dd94fe4?s=32&d=identicon&r=g" alt="Rizkyy\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/13/rizkyy/', u'">', u'Rizkyy', u'</a></li>\\n <li>', u'<span class="score" title="1 karma">1</span>', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/90/wilda/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/7f2e97185d2b72586ecc85c4da6b0107?s=32&d=identicon&r=g" alt="Wilda\\'s gravatar image" />', u'</a></li>\\n <li><a ', u'class="suspended-user" ', u'href="', u'/users/90/wilda/', u'">', u'Wilda', u'</a></li>\\n <li>', u'(suspended)', u'</li>\\n </ul>\\n </div>\\n ', u'\\n <div class="user">\\n <ul>\\n <li class="thumb"><a href="', u'/users/92/suezan/', u' ">', u'<img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/8e33c443ad64c0b1172f829c5ba64e1a?s=32&d=identicon&r=g" alt="Suezan\\'s gravatar image" />', u'</a></li>\\n <li><a ', '', u'href="', u'/users/92/suezan/', u'">', u'Suezan', u'</a></li>\\n <li>']
parentloop
{}
self
<For Node: for user in users.paginator.page, tail_len: 13>
unpack
False
values
<forum.models.base.LazyQueryList object at 0xa74568c>
* /home/noahqw/webapps/osqa_server/lib/python2.5/django/template/__init__.py in render
907.
908. class SimpleNode(Node):
909. def __init__(self, vars_to_resolve):
910. self.vars_to_resolve = map(Variable, vars_to_resolve)
911.
912. def render(self, context):
913. resolved_vars = [var.resolve(context) for var in self.vars_to_resolve]
914. return func(*resolved_vars) ...
915.
916. compile_func = curry(generic_tag_compiler, params, defaults, getattr(func, "_decorated_function", func).__name__, SimpleNode)
917. compile_func.__doc__ = func.__doc__
918. self.tag(getattr(func, "_decorated_function", func).__name__, compile_func)
919. return func
920.
▶ Local vars
Variable Value
context
[{'forloop': {'revcounter0': 0, 'last': True, 'counter': 35, 'parentloop': {}, 'revcounter': 1, 'counter0': 34, 'first': False}, u'user': <User: Suezan>}, {'block': <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>}, {'block': <Block Node: page_center. Contents: [<Text Node: ' <div id="wrapper'>, <Block Node: content. Contents: [<Text Node: ' <div class="tabBar"> '>, <django.templatetags.i18n.TranslateNode object at 0xa745cac>, <Text Node: '</div> '>, <Variable Node: users.paginator.sort_tabs>, <Text Node: ' </div> <div id="main-bod'>, <If node>, <Text Node: ' '>, <If node>, <Text Node: ' </p> <div class='>, <For Node: for user in users.paginator.page, tail_len: 13>, <Text Node: ' </div> </div> '>]>, <Text Node: ' </div> '>, <Block Node: tail. Contents: [<Text Node: ' <div class="pager"> '>, <Variable Node: users.paginator.page_numbers>, <Text Node: ' </div> '>]>, <Text Node: ' </div> '>]>}, {'tab_name': 'unanswered', 'tab_title': u'unanswered', 'tab_url': '/questions/unanswered/'}, {'tab_name': 'badges', 'tab_title': u'badges', 'tab_url': '/badges/'}, {'tab_name': 'users', 'tab_title': u'users', 'tab_url': '/users/'}, {'tab_name': 'tags', 'tab_title': u'tags', 'tab_url': '/tags/'}, {'tab_name': 'questions', 'tab_title': u'questions', 'tab_url': '/questions/'}, {'users': [<User: noahqw>, <User: Miners>, <User: Hjordan2814>, <User: chadqwas>, <User: wii1mii>, <User: zacj421>, <User: James>, <User: eatsalot>, <User: X_Continue_X>, <User: bloodyy>, <User: aymax>, <User: Imusicstudios>, <User: Gary_Larry>, <User: Z91www>, <User: tony_perkins>, <User: WhiteKnightK144>, <User: kmccmk9>, <User: commander_sayin>, <User: ntodd585>, <User: archaeme>, '...(remaining elements truncated)...'], 'tab': 'users', 'suser': ''}, {'perms': <django.utils.functional.__proxy__ object at 0xa7455ec>, 'messages': <django.utils.functional.__proxy__ object at 0xa74548c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xa74532c>}, {'user_messages': []}, {'settings': <module 'forum.settings' from '/home/noahqw/webapps/osqa_server/osqa/forum/settings/__init__.pyc'>}, {'request': <WSGIRequest GET:<QueryDict: {u'sort': [u'karma'], u'page': [u'3']}>, POST:<QueryDict: {}>, COOKIES:{'__utma': '191325800.743848309.1290813156.1291060960.1291073066.18', '__utmb': '191325800.3.10.1291073066', '__utmc': '191325800', '__utmz': '191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50', 'sessionid': 'f2a9d8b043d01c74e7b3b78faf335d20'}, META:{'DOCUMENT_ROOT': '/usr/local/apache2/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.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': 'close', 'HTTP_COOKIE': 'sessionid=f2a9d8b043d01c74e7b3b78faf335d20; __utma=191325800.743848309.1290813156.1291060960.1291073066.18; __utmz=191325800.1291061083.17.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sn50; __utmb=191325800.3.10.1291073066; __utmc=191325800', 'HTTP_HOST': 'sn50.com', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 AlexaToolbar/alxf-2.0 AskTbBT4/3.9.1.14019 Firefox/3.6.12 GTB7.1 (.NET CLR 3.5.30729) PicMorphSearchToolbar/1.2', 'HTTP_X_FORWARDED_FOR': '24.148.156.217', 'HTTP_X_FORWARDED_HOST': 'sn50.com', 'HTTP_X_FORWARDED_SERVER': 'sn50.com', 'PATH_INFO': u'/users/', 'PATH_TRANSLATED': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi/users/', 'QUERY_STRING': 'sort=karma&page=3', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '52815', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/users/?sort=karma&page=3', 'SCRIPT_FILENAME': '/home/noahqw/webapps/osqa_server/osqa/osqa.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '127.0.0.1', 'SERVER_ADMIN': '[no address given]', 'SERVER_NAME': 'sn50.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.5.4', 'mod_wsgi.application_group': 'web122.webfaction.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '41777', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xa5fa890>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xa73c338>, 'wsgi.input': <mod_wsgi.Input object at 0xa5faa20>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>}, {}]
func
<function get_score_badge at 0xa631a74>
resolved_vars
[<User: Suezan>]
self
<django.template.SimpleNode object at 0xa5e508c>
var
<Variable: u'user'>
* /home/noahqw/webapps/osqa_server/osqa/forum/templatetags/extra_tags.py in get_score_badge
41. 'rating': settings.GRAVATAR_ALLOWED_RATING,
42. 'username': template.defaultfilters.urlencode(username),
43. })
44.
45.
46. @register.simple_tag
47. def get_score_badge(user):
48. if user.is_suspended(): ...
49. return _("(suspended)")
50.
51. repstr = decorated_int(user.reputation, "")
52.
53. BADGE_TEMPLATE = '<span class="score" title="%(reputation)s %(reputationword)s">%(repstr)s</span>'
54. if user.gold > 0 :
▶ Local vars
Variable Value
user
<User: Suezan>
* /home/noahqw/webapps/osqa_server/osqa/forum/models/user.py in is_suspended
358. def _pop_suspension_cache(self):
359. self.__dict__.pop('_suspension_dencache_', None)
360.
361. def is_suspended(self):
362. if not self.is_active:
363. suspension = self.suspension
364.
365. if suspension and suspension.extra.get('bantype', None) == 'forxdays' and ( ...
366. datetime.datetime.now() > suspension.action_date + datetime.timedelta(
367. days=int(suspension.extra.get('forxdays', 365)))):
368. suspension.cancel()
369. else:
370. return True
371.
▶ Local vars