

@tornado.gen.coroutine
def get(self):
    (yield self.application.twsessionmgr.remove_session(self))
    ls = self.application.twconntable.as_dict().values()
    ls = [conn for conn in ls if (conn.sessionid == self.twsession['sid'])]
    for conn in ls:
        try:
            conn.close('Your session has been signed out.')
        except Exception as ex:
            pass
    (yield self.find_current_session())
    self.render('logout.html', twsessionstatus=self.twsessionstatus, twsession=self.twsession)

dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/handlers.py LogOutHandler.get/original