Query trip: bridge the gap between FE nad BE
[myslice.git] / engine / manifoldapi.py
index b125a59..c8c3e66 100644 (file)
@@ -1,5 +1,6 @@
 # Manifold API Python interface
 import xmlrpclib
+
 from myslice.config import Config
 
 debug=True
@@ -27,3 +28,14 @@ class ManifoldAPI:
         if debug: print methodName, self.auth, self.url,'->',result
         return result
       return func
+
+  # 4amine : xxx
+  def send_manifold_query (self, manifold_query):
+    (action,method)= (manifold_query.action,manifold_query.method)
+    if action=='get':
+      return self.proxy.Get(self.auth, method, manifold_query.filters, {}, manifold_query.fields)
+    # xxx...
+    elif action=='others':
+      return None
+
+