Anonymous
public text v1 · immutabledef __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()