RuntimeError

something went wrong

/home/blackbird/Development/pocoo/trunk/pocoo/pkg/core/pages.py in handle_request, line 82

Traceback (click to switch to raw view)

A problem occurred in your Python WSGI application. Here is the sequence of function calls leading up to the error, in the order they occurred. Click on a header to show context lines.

__call__ in /home/blackbird/Development/pocoo/trunk/pocoo/application.py

187 resp = handler.handle_request(req, **args)

▸ local variables

NameValue
'_''forum/(?P<forum_id>\\d+)$'
'args'{'forum_id': u'4'}
'default'{}
'environ'{'APPLICATION_REQUEST': '/forum/4', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', '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_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'DWd4db234d24ab29be1b2ab2618e9e178e=YmxhY2tiaXJkfDF8VWR2ZU9JK0xmNFU9; pocoo_sid=1162fef16f374a3e32a849fd9502057b', 'HTTP_HOST': 'localhost:8080', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8080/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)', 'PATH_INFO': '/forum/4', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': 2931, 'REQUEST_METHOD': 'GET', 'REQUEST_URI': 'http://localhost:8080/forum/4', 'SCRIPT_NAME': '', 'SCRIPT_ROOT': '/', 'SERVER_NAME': u'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.1', 'colubrid.request': <Request u'forum/4'>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7dc70b0>, 'wsgi.input': <socket._fileobject object at 0xb6ff341c>, 'wsgi.multiprocess': 0, 'wsgi.multithread': 1, 'wsgi.run_once': 0, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}
'handler'<pocoo.pkg.core.pages.ForumPage object at 0xb64ce5ec>
'm'<_sre.SRE_Match object at 0xb64e52e0>
'r'<_sre.SRE_Pattern object at 0xb65c03e0>
'req'<Request u'forum/4'>
'ret'None
'self'<pocoo.application.Pocoo object at 0xb6ff564c>
'start_response'<function start_response at 0xb6ff356c>
't_1'1172699341.0589099
'wrapper'<pocoo.pkg.core.i18n.I18nWrapper object at 0xb64dab6c>

▸ execute code

handle_request in /home/blackbird/Development/pocoo/trunk/pocoo/pkg/core/pages.py

82 raise RuntimeError('something went wrong')

▸ local variables

NameValue
'_'<Translator ['en-us', 'en']>
'feed_title'u'Recent Changes in Forum 3'
'forum'{'description': u'Summarizing, then, we assume that this analysis of a formative as a pair of sets of features \n cannot be arbitrary in \n a descriptive fact of scriptless alertness: <script>alert("Gotcha");</script>. \n', 'forum_id': 4, 'forums': [], 'is_external_url': False, 'link': None, 'local_thread_count': 4, 'name': u'Forum 3', 'pagination': <pocoo.pkg.core.template.LazyPagination object at 0xb64f456c>, 'post_count': 15, 'thread_count': 4, 'threads': [{'author': {'registered': True, 'url': u'/users/ModelEight', 'user_id': 18, 'username': u'ModelEight'}, 'last_post': {'author': {'registered': True, 'url': u'/users/xorBxBx', 'user_id': 15, 'username': u'xorBxBx'}, 'post_id': 1806, 'timestamp': datetime.datetime(2002, 1, 10, 20, 57, 9), 'title': u'Subpost 0 in depth 1', 'url': u'/post/1806'}, 'new': False, 'post_count': 2, 'post_id': 1805, 'timestamp': datetime.datetime(2002, 1, 10, 20, 11, 6), 'title': u'Forum 4, Thread 3', 'url': u'/post/1805', 'view_count': 0}, {'author': {'registered': True, 'url': u'/users/Bad-Barty', 'user_id': 19, 'username': u'Bad-Barty'}, 'last_post': {'author': {'registered': True, 'url': u'/users/eichenfeld', 'user_id': 17, 'username': u'eichenfeld'}, 'post_id': 1804, 'timestamp': datetime.datetime(2002, 1, 10, 19, 36, 54), 'title': u'Subpost 0 in depth 1', 'url': u'/post/1804'}, 'new': False, 'post_count': 2, 'post_id': 1803, 'timestamp': datetime.datetime(2002, 1, 10, 18, 45, 27), 'title': u'Forum 4, Thread 2', 'url': u'/post/1803', 'view_count': 0}, {'author': {'registered': True, 'url': u'/users/%253Cscript%253Ealert%2528%2522XSS%2522%2529%253B%253C/script%253E', 'user_id': 25, 'username': u'<script>alert("XSS");</script>'}, 'last_post': {'author': {'registered': True, 'url': u'/users/zehjot', 'user_id': 20, 'username': u'zehjot'}, 'post_id': 1802, 'timestamp': datetime.datetime(2002, 1, 10, 18, 29, 29), 'title': u'Subpost 0 in depth 2', 'url': u'/post/1802'}, 'new': False, 'post_count': 150, 'post_id': 1653, 'timestamp': datetime.datetime(2002, 1, 7, 7, 33, 8), 'title': u'Forum 4, Thread 1', 'url': u'/post/1653', 'view_count': 0}, {'author': {'registered': True, 'url': u'/users/Bad-Barty', 'user_id': 19, 'username': u'Bad-Barty'}, 'last_post': {'author': {'registered': True, 'url': u'/users/Bad-Barty', 'user_id': 19, 'username': u'Bad-Barty'}, 'post_id': 1652, 'timestamp': datetime.datetime(2002, 1, 7, 6, 38, 43), 'title': u'Forum 4, Thread 0', 'url': u'/post/1652'}, 'new': False, 'post_count': 1, 'post_id': 1652, 'timestamp': datetime.datetime(2002, 1, 7, 6, 38, 43), 'title': u'Forum 4, Thread 0', 'url': u'/post/1652', 'view_count': 0}, {'author': {'registered': True, 'url': u'/users/lumatic', 'user_id': 9, 'username': u'lumatic'}, 'last_post': {'author': {'registered': True, 'url': u'/users/ModelEight', 'user_id': 5, 'username': u'ModelEight'}, 'post_id': 107, 'timestamp': datetime.datetime(2002, 1, 3, 5, 24, 58), 'title': u'Subpost 0 in depth 1', 'url': u'/post/107'}, 'new': False, 'post_count': 2, 'post_id': 106, 'timestamp': datetime.datetime(2002, 1, 3, 5, 7, 39), 'title': u'Forum 4, Thread 3', 'url': u'/post/106', 'view_count': 0}, {'author': {'registered': True, 'url': u'/users/xRiver', 'user_id': 10, 'username': u'xRiver'}, 'last_post': {'author': {'registered': True, 'url': u'/users/xRiver', 'user_id': 10, 'username': u'xRiver'}, 'post_id': 105, 'timestamp': datetime.datetime(2002, 1, 3, 4, 15, 58), 'title': u'Subpost 0 in depth 2', 'url': u'/post/105'}, 'new': False, 'post_count': 3, 'post_id': 103, 'timestamp': datetime.datetime(2002, 1, 3, 2, 54, 30), 'title': u'Forum 4, Thread 2', 'url': u'/post/103', 'view_count': 1}, {'author': {'registered': True, 'url': u'/users/ThomasWiesenmann', 'user_id': 8, 'username': u'ThomasWiesenmann'}, 'last_post': {'author': {'registered': True, 'url': u'/users/ThomasWiesenmann', 'user_id': 8, 'username': u'ThomasWiesenmann'}, 'post_id': 102, 'timestamp': datetime.datetime(2002, 1, 3, 2, 47, 39), 'title': u'Forum 4, Thread 1', 'url': u'/post/102'}, 'new': False, 'post_count': 1, 'post_id': 102, 'timestamp': datetime.datetime(2002, 1, 3, 2, 47, 39), 'title': u'Forum 4, Thread 1', 'url': u'/post/102', 'view_count': 0}, {'author': {'registered': True, 'url': u'/users/BeeWee', 'user_id': 11, 'username': u'BeeWee'}, 'last_post': {'author': {'registered': True, 'url': u'/users/BeeWee', 'user_id': 11, 'username': u'BeeWee'}, 'post_id': 101, 'timestamp': datetime.datetime(2002, 1, 3, 1, 48, 11), 'title': u'Subpost 0 in depth 4', 'url': u'/post/101'}, 'new': False, 'post_count': 9, 'post_id': 93, 'timestamp': datetime.datetime(2002, 1, 2, 22, 21, 46), 'title': u'Forum 4, Thread 0', 'url': u'/post/93', 'view_count': 0}], 'url': u'/forum/4'}
'forum_id'4
'page'1
'req'<Request u'forum/4'>
'self'<pocoo.pkg.core.pages.ForumPage object at 0xb64ce5ec>

▸ execute code

>>> dir()
['_', 'feed_title', 'forum', 'forum_id', 'page', 'req', 'self']
>>> page
1
>>> forum
{'pagination': <pocoo.pkg.core.template.LazyPagination object at 0xb64f456c>, 'name': u'Forum 3', 'is_external_url': False, 'post_count': 15, 'local_thread_count': 4, 'forum_id': 4, 'thread_count': 4, 'link': None, 'url': u'/forum/4', 'threads': [{'view_count': 0, 'title': u'Forum 4, Thread 3', 'post_count': 2, 'timestamp': datetime.datetime(2002, 1, 10, 20, 11, 6), 'author': {'username': u'ModelEight', 'url': u'/users/ModelEight', 'registered': True, 'user_id': 18}, 'post_id': 1805, 'url': u'/post/1805', 'new': False, 'last_post': {'post_id': 1806, 'title': u'Subpost 0 in depth 1', 'url': u'/post/1806', 'timestamp': datetime.datetime(2002, 1, 10, 20, 57, 9), 'author': {'username': u'xorBxBx', 'url': u'/users/xorBxBx', 'registered': True, 'user_id': 15}}}, {'view_count': 0, 'title': u'Forum 4, Thread 2', 'post_count': 2, 'timestamp': datetime.datetime(2002, 1, 10, 18, 45, 27), 'author': {'username': u'Bad-Barty', 'url': u'/users/Bad-Barty', 'registered': True, 'user_id': 19}, 'post_id': 1803, 'url': u'/post/1803', 'new': False, 'last_post': {'post_id': 1804, 'title': u'Subpost 0 in depth 1', 'url': u'/post/1804', 'timestamp': datetime.datetime(2002, 1, 10, 19, 36, 54), 'author': {'username': u'eichenfeld', 'url': u'/users/eichenfeld', 'registered': True, 'user_id': 17}}}, {'view_count': 0, 'title': u'Forum 4, Thread 1', 'post_count': 150, 'timestamp': datetime.datetime(2002, 1, 7, 7, 33, 8), 'author': {'username': u'<script>alert("XSS");</script>', 'url': u'/users/%253Cscript%253Ealert%2528%2522XSS%2522%2529%253B%253C/script%253E', 'registered': True, 'user_id': 25}, 'post_id': 1653, 'url': u'/post/1653', 'new': False, 'last_post': {'post_id': 1802, 'title': u'Subpost 0 in depth 2', 'url': u'/post/1802', 'timestamp': datetime.datetime(2002, 1, 10, 18, 29, 29), 'author': {'username': u'zehjot', 'url': u'/users/zehjot', 'registered': True, 'user_id': 20}}}, {'view_count': 0, 'title': u'Forum 4, Thread 0', 'post_count': 1, 'timestamp': datetime.datetime(2002, 1, 7, 6, 38, 43), 'author': {'username': u'Bad-Barty', 'url': u'/users/Bad-Barty', 'registered': True, 'user_id': 19}, 'post_id': 1652, 'url': u'/post/1652', 'new': False, 'last_post': {'post_id': 1652, 'title': u'Forum 4, Thread 0', 'url': u'/post/1652', 'timestamp': datetime.datetime(2002, 1, 7, 6, 38, 43), 'author': {'username': u'Bad-Barty', 'url': u'/users/Bad-Barty', 'registered': True, 'user_id': 19}}}, {'view_count': 0, 'title': u'Forum 4, Thread 3', 'post_count': 2, 'timestamp': datetime.datetime(2002, 1, 3, 5, 7, 39), 'author': {'username': u'lumatic', 'url': u'/users/lumatic', 'registered': True, 'user_id': 9}, 'post_id': 106, 'url': u'/post/106', 'new': False, 'last_post': {'post_id': 107, 'title': u'Subpost 0 in depth 1', 'url': u'/post/107', 'timestamp': datetime.datetime(2002, 1, 3, 5, 24, 58), 'author': {'username': u'ModelEight', 'url': u'/users/ModelEight', 'registered': True, 'user_id': 5}}}, {'view_count': 1, 'title': u'Forum 4, Thread 2', 'post_count': 3, 'timestamp': datetime.datetime(2002, 1, 3, 2, 54, 30), 'author': {'username': u'xRiver', 'url': u'/users/xRiver', 'registered': True, 'user_id': 10}, 'post_id': 103, 'url': u'/post/103', 'new': False, 'last_post': {'post_id': 105, 'title': u'Subpost 0 in depth 2', 'url': u'/post/105', 'timestamp': datetime.datetime(2002, 1, 3, 4, 15, 58), 'author': {'username': u'xRiver', 'url': u'/users/xRiver', 'registered': True, 'user_id': 10}}}, {'view_count': 0, 'title': u'Forum 4, Thread 1', 'post_count': 1, 'timestamp': datetime.datetime(2002, 1, 3, 2, 47, 39), 'author': {'username': u'ThomasWiesenmann', 'url': u'/users/ThomasWiesenmann', 'registered': True, 'user_id': 8}, 'post_id': 102, 'url': u'/post/102', 'new': False, 'last_post': {'post_id': 102, 'title': u'Forum 4, Thread 1', 'url': u'/post/102', 'timestamp': datetime.datetime(2002, 1, 3, 2, 47, 39), 'author': {'username': u'ThomasWiesenmann', 'url': u'/users/ThomasWiesenmann', 'registered': True, 'user_id': 8}}}, {'view_count': 0, 'title': u'Forum 4, Thread 0', 'post_count': 9, 'timestamp': datetime.datetime(2002, 1, 2, 22, 21, 46), 'author': {'username': u'BeeWee', 'url': u'/users/BeeWee', 'registered': True, 'user_id': 11}, 'post_id': 93, 'url': u'/post/93', 'new': False, 'last_post': {'post_id': 101, 'title': u'Subpost 0 in depth 4', 'url': u'/post/101', 'timestamp': datetime.datetime(2002, 1, 3, 1, 48, 11), 'author': {'username': u'BeeWee', 'url': u'/users/BeeWee', 'registered': True, 'user_id': 11}}}], 'forums': [], 'description': u'Summarizing, then, we assume that this analysis of a formative as a pair of sets of features \n cannot be arbitrary in \n a descriptive fact of scriptless alertness: <script>alert("Gotcha");</script>. \n'}
>>> 1 + 1
2

Request Data

The following list contains all important request variables. Click on a header to expand the list.

accept_languages
'en-us'
'en'
args
no data given
auth
<pocoo.pkg.core.auth.AuthController object at 0xb64eed2c>
charset
"'utf-8'"
cookies
NameValue
'DWd4db234d24ab29be1b2ab2618e9e178e'<Morsel: DWd4db234d24ab29be1b2ab2618e9e178e='YmxhY2tiaXJkfDF8VWR2ZU9JK0xmNFU9'>
'pocoo_sid'<Morsel: pocoo_sid='1162fef16f374a3e32a849fd9502057b'>
ctx
<ApplicationContext('/home/blackbird/Development/pocoo/trunk/my_instance', is_cgi=True)>
data
"''"
dummy_translate
<Translator []>
environ
NameValue
'APPLICATION_REQUEST''/forum/4'
'CONTENT_LENGTH'''
'CONTENT_TYPE'''
'HTTP_ACCEPT''text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
'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_CACHE_CONTROL''max-age=0'
'HTTP_CONNECTION''keep-alive'
'HTTP_COOKIE''DWd4db234d24ab29be1b2ab2618e9e178e=YmxhY2tiaXJkfDF8VWR2ZU9JK0xmNFU9; pocoo_sid=1162fef16f374a3e32a849fd9502057b'
'HTTP_HOST''localhost:8080'
'HTTP_KEEP_ALIVE''300'
'HTTP_REFERER''http://localhost:8080/'
'HTTP_USER_AGENT''Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)'
'PATH_INFO''/forum/4'
'QUERY_STRING'''
'REMOTE_ADDR''127.0.0.1'
'REMOTE_PORT'2931
'REQUEST_METHOD''GET'
'REQUEST_URI''http://localhost:8080/forum/4'
'SCRIPT_NAME'''
'SCRIPT_ROOT''/'
'SERVER_NAME'u'localhost'
'SERVER_PORT''8080'
'SERVER_PROTOCOL''HTTP/1.1'
'colubrid.request'<Request u'forum/4'>
'wsgi.errors'<open file '<stderr>', mode 'w' at 0xb7dc70b0>
'wsgi.input'<socket._fileobject object at 0xb6ff341c>
'wsgi.multiprocess'0
'wsgi.multithread'1
'wsgi.run_once'0
'wsgi.url_scheme''http'
'wsgi.version'(1, 0)
external_url
"u'http://localhost:8080/forum/4'"
files
no data given
form
no data given
gettext
<Translator ['en-us', 'en']>
handler
None
method
"'GET'"
path
"u'forum/4'"
session
no data given
user
<User 1: u'anonymous'>
values
no data given