[Zope-dev] New ways of getting transactions?

Jim Fulton jim at zope.com
Sun Dec 11 12:15:01 EST 2005


Morten W. Petersen wrote:
> Hi,
> 
> I'm having some code that bombs out trying to commit a transaction;  I
> believe it's because of new ways of doing things in Zope 2.9..  how do
> you call the equivalents of get_transaction().commit() and abort() in
> Zope 2.9?  Will those new ways work with Zope 2.7/2.8?

import transaction
...

transaction.commit()
transaction.abort()

Although I think the old way should still work.  If it doesn't,
please report a bug.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope-Dev mailing list