[Zope] dtml2python (sorry, forgot the subject)

Dieter Fischer dieter.fischer@grid-it.ch
Mon, 26 May 2003 23:51:38 +0200


Hello

I didn't find the equivalent commands in python (script) for this two dmtl
commands:

<dtml-try>
   ...
<dtml-except DatabaseError>
   <dtml-if "error_type == 'IntegrityError'">
      ...
   </dtml-if>
<dtml-else>
      ...
</dtml-try>

---

try:
   ...
except DatabaseError:
   if error_type == 'IntegrityError':
      ...
   else:
      ...

doesn't work. Have I to import something to access the variables, or what am
I missing?

Thanks

Dieter


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