I do, but that doesn't help. If I use transaction.abort() it seems that entire transaction is aborted. If I use savepoint.rollback() (savepoint being given by transaction.savepoint()) I get InvalidSavepointRollbackError.

The SQLAlchemy manual suggests that for each session.being_nested() (which makes a savepoint) must be matched with one session.commit() or session.rollback(). And I can't use session.commit or rollback in Pyramid, must rely on transaction, and transaction.abort() (as it has no .rollback()) invalidates all sessions in the transaction.


.oO V Oo.


On 11/13/2011 04:27 PM, Malthe Borch wrote:
On 13 November 2011 16:02, Vlad K.<[email protected]>  wrote:
TransactionFailedError: An operation previously failed, with traceback
I think you have to issue a manual rollback in case of a transaction abort.

\malthe


--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to