예제 #1
0
 def Disconnect(token):
     """
     Destroy a auth token
     :param token: auth token string
     :return:
     """
     return True, SessionManager.Logout(token)
예제 #2
0
 def Disconnect(session):
     """
     Disconnect from the engine.
     :param session: session id
     """
     try:
         return True, SessionManager.Logout(session)
     except Exception as e:
         print "Exception in COrgan: %s" % str(e)
         return False, e