Kumar McMillan escreveu:
class BaseController(WSGIController):
    def __call__(self, environ, start_response):
        model.db.connect(config['sqlalchemy.default.uri'])
        try:
            return WSGIController.__call__(self, environ, start_response)
        finally:
            model.db.session.remove()

I must have missed this: why connect-and-bind() on each request?

.oO(yeah, I'd forgot about Session.remove() after each request; that was painful)


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to