def Disconnect(token): """ Destroy a auth token :param token: auth token string :return: """ return True, SessionManager.Logout(token)
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