[Zope] using exceptions in python scripts

Thomas Guettler zopestoller@thomas-guettler.de
Thu, 31 Jan 2002 09:53:44 +0100


roy@anoobe.com wrote:

>Dear Zope Users,
>
>Fairly new to Zope, but I am writing a Python Script. I would like to
>use exceptions in my processing flow, but the security restrictions
>won't allow it. What is the recommended approach here?
>
>For example, what I would like to do, but am not allowed to, is:
>
[schnipp]

>except:
>  import sys # SECURITY won't allow
>  print sys.exc_type; return printed
>
One solution would be to use an external method. But maybe there is a 
better way. I never used
exceptions in python scripts up to now.

 thomas