[Zope] Exceptions in Python Script

Dieter Maurer dieter@handshake.de
Thu, 19 Dec 2002 19:54:26 +0100


Kevin Gill writes:
 > Can anyone point me towards documentation / howtos / information on handling 
 > exceptions in python scripts (scripts not 'external methods').
Apparently, someone forget that exception handling may be interesting
in Python Scripts.

  He forgot to provide the necessary security declarations.

When you can add/change products, you can provide the missing
security declarations. See the "Readme" tab of the
"PythonScripts" product.

Once, you did this, you can handle exceptions in the normal way.

The standard Python exceptions can be imported from the
"exceptions" module.


Dieter