The Pylons WSGIController handles the exceptions thrown from abort and such,
> so that the httpexception middleware is obsolete. What version of Pylons was
> used originally for the project?
>
I do not remember the version but it was something really old. ;)
Anyway, I removed that httpexceptions and now browser simply display
traceback for http exception in html:
File
"/var/www/dou-www/py/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/util.py",
line 210, in redirect
raise exc(location=url).exception
HTTPMovedPermanently: 301 Moved Permanently
Content-Type: text/html; charset=UTF-8
Content-Length: 0
location: http://localhost:8004/error/document/?viagra=1
I guess something wrong again.
I posted my make_app code here:
http://pylonshq.com/pasties/8da2de9d613c2d377413d57a45c06542
Max
PS: if httpexception is present and I use abort(404) or raise Error() the
browser gets redirected to /error/document/.
I think this is incorrect. At least it wasn't there in 0.9.6. The problem
with this is that it hinders original path and thus makes analyzing log
files for 404/500 errors useless.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---