Error trap in python script
Is there a built in handle for exception type and value in python scripts (as in DTML)??
Hi drew, --On Montag, 25. November 2002 11:27 +1000 drew nichols <drew@mena.org.au> wrote:
Is there a built in handle for exception type and value in python scripts (as in DTML)??
Yes. This is try: except: ... See python documentation on that matter. (DTMLs Exception handling is only a syntactical wrapper around this) Regards Tino
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
drew nichols writes:
Is there a built in handle for exception type and value in python scripts (as in DTML)?? Unfortunately, it is difficult to access the exception information in Python Scripts:
One has forgotten to provide the necessary security declarations in the standard Python exception classes and the essential function "sys.exc_info". You may fix these omissions when you have write access to Zope's "Products" folder. Please read the "Readme" tab of the "Python Scripts" product. Dieter
participants (3)
-
Dieter Maurer -
drew nichols -
Tino Wildenhain