Thanks Michael. - Idiot
Michael Bayer wrote: > if an object is already attached to a session, you can get at that > via object_session(instance). if the object is detached, itll return > None. > > if you want better ways to handle getting a session for objects that > arent yet attached to anything, thats all worked out by the > SessionContext extension, and optionally the get_session() method on > MapperExtension. this allows you to pull up a session from a class' > mapper which is based on *some* context, of which you can define to > be whatever you want. that whole thing is described at http:// > www.sqlalchemy.org/docs/plugins.myt#plugins_sessioncontext . > > typically the context is that Sessions are keyed to the identifiers > of threads, since the Session is generally not threadsafe. > > > > On Jul 13, 2006, at 2:52 PM, Randall Smith wrote: > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users