Hello, when building a session extension with after_rollback or (after|before) _commit logic one might want to find out whether the session that triggered the extension by issuing a rollback or commit actually is an outer session resp. actually issues/issued a COMMIT or ROLLBACK to the database, contrary to just releasing a savepoint f.e.
It appears to me that session.transaction is not None and session.transaction is session.transaction._iterate_parents()[-1] does the trick, but that would mean calling a private method of SessionTransaction, which I'm not sure is safe. What would be the best way to find that out? Best, Thomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---