[Zope-dev] New ways of getting transactions?

Stefan H. Holek stefan at epy.co.at
Sun Dec 11 12:20:01 EST 2005


import transaction
transaction.get()
transaction.commit()
transaction.abort()
transaction.savepoint()

This works since 2.8, but not in 2.7. Nearly every project has come  
up with its own backward compatibility module though. See for example  
CMFCore.utils.transaction or CMFPlone.transaction.

Stefan


On 11. Dez 2005, at 17:01, 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?
>
> Thanks.
>
> -- 
> Morten W. Petersen

--
Anything that happens, happens.  --Douglas Adams




More information about the Zope-Dev mailing list