X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=auth%2Fmanifoldbackend.py;h=a4aed0d355a7e2d2b22cb15624e37c51b4121645;hb=aece54ce4815fe4d13219f6a5356ee79a2a32b28;hp=f763291a84b5d72558915f63232fff4965de03e6;hpb=d9509698dac0831baad1b725710a72e0ef0dffca;p=unfold.git diff --git a/auth/manifoldbackend.py b/auth/manifoldbackend.py index f763291a..a4aed0d3 100644 --- a/auth/manifoldbackend.py +++ b/auth/manifoldbackend.py @@ -34,15 +34,11 @@ class ManifoldBackend: #old expires = time.time() + (24 * 60 * 60) sessions_result = api.forward(Query.create('local:session').to_dict()) - print "result" sessions = sessions_result.ok_value() - print "ok" if not sessions: print "GetSession failed", sessions_result.error() return - print "first", sessions session = sessions[0] - print "SESSION=", session # Change to session authentication api.auth = {'AuthMethod': 'session', 'session': session['session']} @@ -56,7 +52,6 @@ class ManifoldBackend: print "GetPersons failed",persons_result.error() return person = persons[0] - print "PERSON=", person request.session['manifold'] = {'auth': api.auth, 'person': person, 'expires': session['expires']} except Exception, e: