Exemple #1
0
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
Exemple #2
0
def db_request(pyramid_request, db_session):
    pyramid_request.db = db_session
    pyramid_request.flags = Flags(pyramid_request)
    return pyramid_request