Re: [sqlalchemy] DetachedInstanceError after transaction

2012-02-14 Thread Claudio Freire
On Tue, Feb 14, 2012 at 6:48 PM, Jonathan Vanasco wrote: > I will admit that i have some janky db sessioning stuff going on > behind the scenes as I get used to pyramid and the new sqlalchemy. Then I'd say the "janky db sessioning stuff going on behind the scenes" is closing your session after th

[sqlalchemy] DetachedInstanceError after transaction

2012-02-14 Thread Jonathan Vanasco
I seem to get this after I call a transaction.commit sqlalchemy.orm.exc.DetachedInstanceError DetachedInstanceError: Instance is not bound to a Session; attribute refresh operation cannot proceed In the following code, the first call will print the id [ i called a flush() previously ],