[Zope3-dev] Better exception display
Jim Fulton
jim@zope.com
Tue, 21 Jan 2003 13:08:41 -0500
Here's a fun little project for someone. :)
We want to display errors nicely, but we may not know how to do so.
In Zope 2, we have this rool that if the str of an exception contains
HTML markup, then it must be meant for a human. This is not so good. :)
The zope 3 way to do this is to define views for exception objects.
This way, we can configure the system to handle different kinds of errors
in a way that is appropriate to the error type and to the presentation type.
When an error percolates up to the publication machinery, the machinery
simply looks up a view for the error and displays that.
Anybody wanna work this out?
:)
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (888) 344-4332 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org