X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fmanifoldproxy.py;h=d5a4ab080673009c774c8e8ea8e3a185e5b3102a;hb=0f1e6ec6c7cbf1dd2987c633560ab1102a0d3a41;hp=20e95929c39106ea14546556ed99beea98e4ab35;hpb=f9cdd5524f3b0ed94df660fab8a2dffd99a3f557;p=unfold.git diff --git a/engine/manifoldproxy.py b/engine/manifoldproxy.py index 20e95929..d5a4ab08 100644 --- a/engine/manifoldproxy.py +++ b/engine/manifoldproxy.py @@ -6,6 +6,10 @@ from django.http import HttpResponse, HttpResponseForbidden from engine.manifoldquery import ManifoldQuery from engine.manifoldapi import ManifoldAPI +# add artificial delay in s +debug_spin=0 +#debug_spin=1 + # this view is what the javascript talks to when it sends a query # see also # myslice/urls.py @@ -34,6 +38,9 @@ with the query passed using POST""" # actually forward manifold_api= ManifoldAPI(auth=manifold_api_session_auth) answer=manifold_api.send_manifold_query (manifold_query) + if debug_spin: + import time + time.sleep(debug_spin) # return json-encoded answer return HttpResponse (json.dumps(answer), mimetype="application/json")