Am 22.08.2014 um 10:54 schrieb Jose Soares:
After having carefully read the documentation at
http://www.turbogears.org/1.5/docs/ErrorReporting.html
I decided to use "Method 3: Application-wide Catch-all with error_response"
Then, I wrote the following code in my controller:
Hi Jose,
your code is different from what is written in the docs. Particularly,
the handle_error() should be taken literally from there.
Just copy the code in the docs into a module errorhandling.py, then add
from .errorhandling import error_page, handle_error
at the top of your project, and add this to your RootController class:
if config.get('error_catcher.on', False):
_cp_config = {
'error_page.default': error_page,
'request.error_response': handle_error
}
That definitely works for me, inculding the 500 errors.
-- Christoph
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.