On Thu, Apr 25, 2002 at 07:28:45AM -0700, Titus Brown wrote:
> Is this used for anything anywhere? I don't spot anything
> straightforward...
It doesn't look like it. Error handling on Quixote is still a bit
krufty. Applications should be able to override the formatting of error
pages (e.g. 404 errors). I've been meaning to clean that part of
Quixote up for a while now but haven't got to it yet. My current plan
is to change the publisher to look up the error handler using getattr on
namespace (e.g. getattr(object, "_q_except")). You could then define
function that formats error pages like:
def _q_except(exception):
The publisher would traverse up the path looking for the nearest
handler, much like exception handling. If none can be found then a
default handler is used.
Neil