git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
django session bundling manifold auth, person and expires
[myslice.git]
/
auth
/
manifoldbackend.py
diff --git
a/auth/manifoldbackend.py
b/auth/manifoldbackend.py
index
da3c23f
..
450974e
100644
(file)
--- a/
auth/manifoldbackend.py
+++ b/
auth/manifoldbackend.py
@@
-34,12
+34,13
@@
class ManifoldBackend:
# Change to session authentication
api.auth = {'AuthMethod': 'session', 'session': session}
# Change to session authentication
api.auth = {'AuthMethod': 'session', 'session': session}
-
#
self.api = api
+ self.api = api
# Get account details
person = api.GetPersons(auth)[0]
# 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
except:
return None