From f71f48bbebffa6bb81165a9e6acaa872181a8926 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 3 Sep 2013 16:02:25 +0200 Subject: [PATCH] cleanup commented code --- auth/manifoldbackend.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/auth/manifoldbackend.py b/auth/manifoldbackend.py index f763291a..529ef0fc 100644 --- a/auth/manifoldbackend.py +++ b/auth/manifoldbackend.py @@ -21,18 +21,6 @@ class ManifoldBackend: auth = {'AuthMethod': 'password', 'Username': username, 'AuthString': password} api = ManifoldAPI(auth) -#old # Authenticate user and get session key -#old # the new API would expect Get('local:session') instead -#old session_result = api.GetSession() -#old session = session_result.ok_value() -#old if not session: -#old print "GetSession failed",session_result.error() -#old return -#old print 'DEALING with session',session -#old #self.session = session -#old # Change GetSession() at some point to return expires as well -#old expires = time.time() + (24 * 60 * 60) - sessions_result = api.forward(Query.create('local:session').to_dict()) print "result" sessions = sessions_result.ok_value() -- 2.43.0