On 11/14/06, Simon Wittber <[EMAIL PROTECTED]> wrote:
> I am concerned because cherrypy spawns new threads for requests, and
> model.session appears to be a shared object amongst threads.

model.session is turbogears.database.session which in turn is an
instance of activemapper.Objectstore. That class is a thread-local
session storage.

You'll thus be using a different session for each thread automatically
just by typing "model.session".

Arnar

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to