I've read a few posts, and can't seem to find a definitive, clear answer. Can model.session (provided by SQLAlchemy) be safely used within different controllers?
I am concerned because cherrypy spawns new threads for requests, and model.session appears to be a shared object amongst threads. I use model.session.flush() to save changes to the database, and am wondering whether I should be creating a new session object within each controller, or within each method on a controller. How does everyone else do this? -Sw. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

