[sqlalchemy] Re: new session docs !

2007-08-10 Thread Michael Bayer
On Aug 10, 2007, at 5:18 AM, Alexandre CONRAD wrote: It sounds to me that the session is global and needs to be cleared everytime. Which I think is wrong (or SessionContext works differently). I think a *new* session should be created and attached to every new request. The session is

[sqlalchemy] Re: new session docs !

2007-08-10 Thread Mike Orr
On 8/10/07, Alexandre CONRAD [EMAIL PROTECTED] wrote: Okay Mike, about scoped_session(), I think I got it right this time. I was trying to get inspired from SAContext, how it's beeing wrapped around with Pylons. Since SAContext has not yet upgraded to SA 0.4, maybe I was just getting

[sqlalchemy] Re: new session docs !

2007-08-10 Thread Alexandre CONRAD
Okay Mike, about scoped_session(), I think I got it right this time. I was trying to get inspired from SAContext, how it's beeing wrapped around with Pylons. Since SAContext has not yet upgraded to SA 0.4, maybe I was just getting inspired from some different mechanism. Or SAContext it doing