On 8/6/07, jose <[EMAIL PROTECTED]> wrote: > Thanks Mike, > So just to clarify I need to del the current session with every > request is that right? Is there ever a situation where I would not > want to del the current session with every request?
No. There may be some theoretical advantage to having a cache dict of HTTP session ID : database session, but you'd have to ask on the SQLAlchemy list whether that's even worth considering. Nobody does it. And sessions can't be shared between users because each might be viewing a different version of the data, depending on whether their transaction started before or after somebody else committed, and whether their transaction contains uncommitted changes. > On a different note with my current setup (using extension=sac.ext) I > thing that the explicit "save" (rec.save() from the example above) is > not really necessary is it? No, sac.ext implicitly does the save for yoi. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---