Hi, Is it possible to throw an exception (not string) using dtml-raise? Both <dtml-raise Exception>Text</dtml-raise> and <dtml-raise type="Exception">Text</dtml-raise> behave like raise "Exception", "Text" rather than raise Exception("Text") which means I cannot catch this error in Python Script using "except Exception, ex:" Thanks, Andrey This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Andrey Shuvikov wrote at 2004-8-30 20:10 -0400:
Is it possible to throw an exception (not string) using dtml-raise?
Almost surely no. There is no more active development for DTML. The code comes from a time as Python did not yet have class based exceptions. -- Dieter
participants (2)
-
Andrey Shuvikov -
Dieter Maurer