[Zope3-dev] Re: [ZODB-Dev] revise transaction API

Jeremy Hylton jeremy at zope.com
Tue Mar 16 16:03:48 EST 2004


On Tue, 2004-03-16 at 15:27, Christian Robottom Reis wrote:
> On Tue, Mar 16, 2004 at 03:21:22PM -0500, Jeremy Hylton wrote:
> > We've been having some internal discussions about how to revise the
> > transaction API for ZODB 3.3.  I posted a page in the ZODB Wiki that
> 
> I see this mentions savepoints for ZODB4. Can you tell me if you can
> roll back to any savepoint in a running transaction's history? If so, it
> would be a solution to that last (subtrasaction) problem I posted about.

I think it is just what you're looking for.  When you call savepoint(),
you get an object with a rollback() method.  Anytime you call
rollback(), you revert all changes made since the savepoint() call.

Jeremy





More information about the Zope3-dev mailing list