django session bundling manifold auth, person and expires
authorMohamed Larabi <aminelarabi@vis074b.sophia.inria.fr>
Tue, 19 Feb 2013 09:40:05 +0000 (10:40 +0100)
committerMohamed Larabi <aminelarabi@vis074b.sophia.inria.fr>
Tue, 19 Feb 2013 09:40:05 +0000 (10:40 +0100)
auth/manifoldbackend.py

index da3c23f..450974e 100644 (file)
@@ -34,12 +34,13 @@ class ManifoldBackend:
 
             # Change to session authentication
             api.auth = {'AuthMethod': 'session', 'session': session}
-            #self.api = api
+            self.api = api
 
             # Get account details
             person = api.GetPersons(auth)[0]
-            request.session['manifold_person'] = person
-            #self.person = person[0]
+            self.person = person
+
+            request.session['manifold'] = {'auth': api.auth, 'person': person, 'expires': expires}
         except:
             return None