Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/cherrypy/wsgiserver/__init__.py", line 1174, in communicate
req.respond()
File "/usr/lib/pymodules/python2.6/cherrypy/wsgiserver/__init__.py", line 544, in respond
self._respond()
File "/usr/lib/pymodules/python2.6/cherrypy/wsgiserver/__init__.py", line 556, in _respond
response = self.wsgi_app(self.environ, self.start_response)
File "/home/www/psto/web/venv/lib/python2.6/site-packages/werkzeug/local.py", line 234, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File "run.py", line 75, in __call__
catch_ http_exceptions = True
File "/home/www/psto/web/venv/lib/python2.6/site-packages/werkzeug/routing.py", line 1171, in dispatch
return view_func(endpoint, args)
File "run.py", line 74, in <lambda>
lambda view, vars: views[view](**vars),
File "/home/www/psto/web/views/post.py", line 100, in add_post
post_id_encode(post_id)))
File "lib/utils.py", line 129, in post_id_encode
return ''.join(map(lambda n: enc_tr[n], str(id)))
File "lib/utils.py", line 129, in <lambda>
return ''.join(map(lambda n: enc_tr[n], str(id)))
KeyError: 'N'
Это ок?
jhenko
12.03.2011 18:35
Do you really want to delete ?