[sqlalchemy] [Q][0.7.9] DetachedInstanceError

2013-05-30 Thread Ladislav Lenart
Hello. I occasionally see DetachedInstanceError in apache error log of my web app. According to http://docs.sqlalchemy.org/en/rel_0_8/orm/session.html#expunging an object is detached when: 1. It is expunged. 2. The session is closed. I use expunge() only in some of my unit tests,

Re: [sqlalchemy] [Q][0.7.9] DetachedInstanceError

2013-05-30 Thread Michael Bayer
On May 30, 2013, at 7:16 AM, Ladislav Lenart lenart...@volny.cz wrote: Hello. I occasionally see DetachedInstanceError in apache error log of my web app. According to http://docs.sqlalchemy.org/en/rel_0_8/orm/session.html#expunging an object is detached when: 1. It is