[Zope] (no subject)

Dieter Fischer dieter.fischer@grid-it.ch
Mon, 26 May 2003 23:47:56 +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