Merge branch 'master' of ssh://git.onelab.eu/git/myslice-django
[myslice.git] / auth / manifoldbackend.py
index da3c23f..54b16e7 100644 (file)
@@ -27,19 +27,19 @@ class ManifoldBackend:
             if not session : 
                 return None
             
-            request.session['manifold_session'] = session
             #self.session = session
             # Change GetSession() at some point to return expires as well
             expires = time.time() + (24 * 60 * 60)
 
             # 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