[ZODB-Dev] ZODB 3.8.0a1 released

Stefan H. Holek stefan at epy.co.at
Sun May 13 03:59:54 EDT 2007


You would now use transaction.savepoint(True). Note also that you  
don't need to abort a subtransaction or optimistic savepoint, it will  
be aborted/committed as part of the "full" transaction.

Stefan


On 12. Mai 2007, at 19:00, Paul Winkler wrote:

> I belatedly realized I have some old test code that uses a
> "subtransaction hack" to get a _p_jar and _p_oid:
>
>         try:
>             transaction.commit(1)
> 	    # do something needing _p_jar or _p_oid
>         finally:
>             transaction.abort(1)

--
It doesn't necessarily do it in chronological order, though.
   --Douglas Adams




More information about the ZODB-Dev mailing list