X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=auth%2Fmanifoldbackend.py;fp=auth%2Fmanifoldbackend.py;h=529ef0fcf5a694029fad881122293eda1f67ab11;hp=f763291a84b5d72558915f63232fff4965de03e6;hb=f71f48bbebffa6bb81165a9e6acaa872181a8926;hpb=c33d0dd5fbfbd8e16c7d971100a851469d313eff 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()