we embed the (currently raw) results from manifold API in a ManifoldResult dict
[myslice.git] / manifold / manifoldproxy.py
index 733f209..d0636c8 100644 (file)
@@ -64,9 +64,7 @@ with the query passed using POST"""
         manifold_api= ManifoldAPI(auth=manifold_api_session_auth)
         if debug: print 'manifoldproxy.proxy: sending to backend', manifold_query
         answer=manifold_api.send_manifold_query (manifold_query)
-        if debug: 
-            try:        print "received answer from backend with %d rows"%len(answer)
-            except:     print "received answer from backend - can't say len"
+        if debug: print 'manifoldproxy.proxy: received from backend with code', answer['code']
         json_answer=json.dumps(answer)
         if (debug):
             with (file(offline_filename,"w")) as f:
@@ -74,8 +72,8 @@ with the query passed using POST"""
         if debug_spin:
             import time
             time.sleep(debug_spin)
-        # return json-encoded answer
         return HttpResponse (json_answer, mimetype="application/json")
+
     except:
         import traceback
         traceback.print_exc()