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
cleanup spin functions - actually use our defaults - provide means to tweak defaults...
[myslice.git]
/
manifold
/
manifoldapi.py
diff --git
a/manifold/manifoldapi.py
b/manifold/manifoldapi.py
index
f8c33f9
..
6639d48
100644
(file)
--- a/
manifold/manifoldapi.py
+++ b/
manifold/manifoldapi.py
@@
-132,6
+132,9
@@
def _execute_query(request, query, manifold_api_session_auth):
print "-"*80
result = manifold_api.forward(query.to_dict())
if result['code'] == 2:
print "-"*80
result = manifold_api.forward(query.to_dict())
if result['code'] == 2:
+ # this is gross; at the very least we need to logout()
+ # but most importantly there is a need to refine that test, since
+ # code==2 does not necessarily mean an expired session
# XXX only if we know it is the issue
del request.session['manifold']
# Flush django session
# XXX only if we know it is the issue
del request.session['manifold']
# Flush django session