the current docs on the site and in the trunk have two separate sections; one for SessionContext and a sub-section for SessionContextExt. the example below is part of the SessionContextExt usage only; if you only use SessionContext without the extension, then you dont get any auto-saving behavior. if you check out the latest docs on the site, this is now laid out more clearly and in greater detail.
On Oct 13, 2006, at 7:10 PM, HD Mail wrote: > > Hi Michael, > > I just read the docs and it stated in the code section for > SessionContext > > # 'u' is automatically added to the current session of 'ctx' > u = User() > > Is this correct ? I was under the impression it would not do this, > which was what I found not intuitive about objectstore. > > regards, > > Huy > > >> sessioncontext. go read the plugins page in the documentation. >> >> On Oct 10, 2006, at 10:34 PM, Huy Do wrote: >> >> >>> Hi, >>> >>> Just wondering if there is a threadlocal like plugin, but which >>> doesn't >>> automatically add objects to the session ? >>> i.e it behaves like the threadlocal but you have to explicitly call >>> objectstore.save(myobj) on all objects you want saved. >>> >>> >> >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy -~----------~----~----~----~------~----~------~--~---
