[Zope] How manage error with zsql

Dieter Maurer dieter at handshake.de
Sat Dec 6 14:08:20 EST 2008

robert rottermann wrote at 2008-12-6 17:15 +0100:
>I think you should  write in a python script:
>  result = context.insert_data.zsql

I expect (at least) two errors here. "context.insert_data()" has
a chance to work.

>  msg = 'data inserted'
>except ZeroDivisionError:
>  msg = 'ZeroDivisionError occured'


More information about the Zope mailing list