From: Thierry Parmentelat Date: Tue, 3 Sep 2013 14:02:25 +0000 (+0200) Subject: cleanup commented code X-Git-Tag: myslice-0.2-1~24^2~7 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=f71f48bbebffa6bb81165a9e6acaa872181a8926 cleanup commented code --- 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()