All pastes #756586 Raw Edit

Anonymous

public text v1 · immutable
#756586 ·published 2007-10-31 16:22 UTC
rendered paste body
def __call__(self, environ, start_response):
    conn = engine.connect()
    model.Session(bind=conn)
    try:
        return WSGIController.__call__(self, environ, start_response)
    finally:
        model.Session.remove()
        conn.close()