26 May
2003
26 May
'03
9:51 p.m.
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 )