On Mon, Nov 22, 2010 at 5:00 PM, Kevin J. Smith <[email protected]> wrote: > class BaseController(WSGIController): > > def __call__(self, environ, start_response): > > try: > > return WSGIController.__call__(self, environ, start_response) > > finally: > > meta.Session.close() > > meta.Session.remove()
You don't need the Session.close(). http://www.sqlalchemy.org/docs/orm/session.html#lifespan-of-a-contextual-session -- 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 [email protected]. 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.
