

def get_session(self, request, key):
    'Retrieve a session from its key\n        '
    odm = request.app.odm()
    token = odm.token
    with odm.begin() as session:
        query = session.query(token).options(joinedload(token.user))
        token = query.get(key)
    return self.add_encoded(request, token)

dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/backends.py SessionBackend.get_session/original