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


_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to