X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldapi.py;fp=manifold%2Fmanifoldapi.py;h=25b80f9cf96301675f3fb1518d6b9e5571346276;hb=13fe73170b3a3f5912bbd13aee0a97048d935436;hp=a80a220c770a5382f7150a2bebac1ba089b48056;hpb=dfdc8ce3be8c9381e91169dba7ee87444280b0c5;p=myslice.git diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index a80a220c..25b80f9c 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -132,8 +132,10 @@ def _execute_query(request, query, manifold_api_session_auth): print "-"*80 result = manifold_api.forward(query.to_dict()) if result['code'] == 2: - # XXX only if we know it is the issue - del request.session['manifold'] + # 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 + # del request.session['manifold'] raise Exception, 'Error running query: %r' % result if result['code'] == 1: