Miguel Beltran R. wrote at 2008-12-9 13:42 -0600:
>is possible have a general except and inside show what type is?
>in dtml was
>  type:<dtml-var error_type>  value: <dtml-var error_value>

According to the documentation (--> embedded online documentation (aka "Help")
--> Zope Help --> DTML Reference --> try), this is possible.

Note, however, that unqualified "try ... except ..." is dangerous,
everywhere, both in Python as well as in DTML.

Formerly, exceptions have been strings. Nowadays, exceptions are
class instances. I am not sure whether the DTML-try already
support non string exceptions.
If you observe problems, then this might be the reason.

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to