On 12/03/2011 00:51, AJAY PATTNI wrote:
We use a global session as follows:
__session__ =
scoped_session(sessionmaker(twophase=False,transactional=True,autoflush=True,extension=ZopeTransactionExtension()))
All the rest of the transactional machinery is handled by Elixiry
Entity object.
So my question - how can we rollback in this situation?
import transaction
transaction.abort()
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.