[sqlalchemy] Re: Inactive transactions and commit/rollback from Session

2009-11-12 Thread Michael Bayer
Hans Lellelid wrote: The errors (The transaction is inactive.) are coming from my meta.Session.commit() line. Two questions: 1) Isn't this what meta.Session.is_active should be testing for? it is. I'm not familiar with a codepath which can cause that to happen, and in fact even if the

[sqlalchemy] Re: Inactive transactions and commit/rollback from Session

2009-11-12 Thread Hans Lellelid
Hi Michael - Thanks for the response! 1) Isn't this what meta.Session.is_active should be testing for? it is.   I'm not familiar with a codepath which can cause that to happen, and in fact even if the session isn't active, it still should be totally fine to call commit().  Try this as an