[Zope] Redirect if SyntaxError

Thomas Guettler Thomas Guettler <thomas@thomas-guettler.de>
Mon, 7 Apr 2003 15:54:52 +0200


Hi!

If you have a typo in your source while developing a python product,
you only get a traceback in the log and zope uses the code from
memory. It would be nice to get redirected to a page displaying the
error.

I tried to add a try ... except clause in the __init__.py of my
product, but I can't get access to the request or response variable.

Any hints?

  Thomas

-- 
Thomas Guettler <guettli@thomas-guettler.de>
http://www.thomas-guettler.de