示例#1
0
文件: session.py 项目: 20c/vodka1
    def auth_clear(self):
        t = RunInThread(self.auth_clear_process)
        t.start()

        try:
            for fn in AUTH_CLEAR_FINALIZE:
                fn(self)
        except Exception, inst:
            webapp.log.error(traceback.format_exc())
示例#2
0
文件: session.py 项目: 20c/vodka1
 def auth_start(self, **kwargs):
     if not self.auth_working():
         self.auth_status = AUTH_PROCESSING
         self.auth_data = kwargs
         self.auth_data.update(start_t=time.time())
         t = RunInThread(self.auth_process)
         t.error_handler = self.auth_error
         t.result_handler = self.auth_success
         t.start(**kwargs)
     else:
         raise AuthInProgressException()