def db_request(pyramid_request, db_session, datadog): pyramid_request.registry.datadog = datadog pyramid_request.db = db_session pyramid_request.flags = Flags(pyramid_request) return pyramid_request
def db_request(pyramid_request, db_session): pyramid_request.db = db_session pyramid_request.flags = Flags(pyramid_request) return pyramid_request