[Zope] adding properties trough pythonscript

Dieter Maurer dieter at handshake.de
Mon Oct 18 13:36:23 EDT 2004


Sean Hastings wrote at 2004-10-18 01:58 -0400:
>I believe that "try: ... except:..." code is only really dangerous if you do
>not specify the type of Exceptions that will be caught.

I believe you are wrong:

  Catching *ANY* exception can cause inconsistencies in persistent data.

  It does (almost surely) when the "try" block modified persistent
  state before the exception occurred (and you did not ensure that
  the transaction is aborted).


-- 
Dieter


More information about the Zope mailing list