

@tornado.gen.coroutine
def find_current_session(self):
    "\n        Look up the user's session, using the sessionid cookie.\n        \n        Sets twsessionstatus to be 'auth', 'unauth', or 'unknown' (if the\n        auth server is unavailable). In the 'auth' case, also sets\n        twsession to the session dict.\n        \n        If this is never called (e.g., the error handler) then the status\n        remains None. This method should catch all its own exceptions\n        (setting 'unknown').\n\n        This is invoked from the prepare() method, but also manually if\n        we know the session info has changed.\n        "
    if self.application.caughtinterrupt:
        raise MessageException('Server is shutting down!')
    res = (yield self.application.twsessionmgr.find_session(self))
    if res:
        (self.twsessionstatus, res.twsession) = res
    return True

dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/handlers.py MyHandlerMixin.find_current_session/VarMisuse@61/296 `self`->`res`