[Zope] Throwing exception using dtml-raise
Andrey Shuvikov
ashuvikov at genuone.com
Mon Aug 30 20:10:30 EDT 2004
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.
More information about the Zope
mailing list