[Zope-dev] Re: [Zope3-dev] substransactions and beforeDelete

Dieter Maurer dieter at handshake.de
Thu Jan 8 14:25:36 EST 2004


Florent Guillaume wrote at 2004-1-7 18:31 +0100:
>[Cc zope-dev and not zope3-dev anymore as my question is now zope 2 
>related...]
>
>Ok so Jim mentionned it was possible to do rollback of subtransactions 
>in Zope 2. How can I do that ? What's the idiom that would be equivalent to:
>
>tid = startSubTransaction()
>...
>if something:
>     rollbackSubTransaction(tid)

      get_transaction().abort(1)

(in analogy to "get_transaction().commit(1)").

-- 
Dieter



More information about the Zope-Dev mailing list