X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldapi.py;h=25b80f9cf96301675f3fb1518d6b9e5571346276;hb=f01153e83e648390596f0343294912560165bc49;hp=89b6f0ea8bf255d73a37a8772898d836ae1bc83d;hpb=f8a556326c2a66f26f8b2114c0a6d03985b671c0;p=unfold.git diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index 89b6f0ea..25b80f9c 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -132,6 +132,10 @@ def _execute_query(request, query, manifold_api_session_auth): 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 + # del request.session['manifold'] raise Exception, 'Error running query: %r' % result if result['code'] == 1: