Merge branch 'master' of ssh://git.onelab.eu/git/myslice-django
[unfold.git] / engine / manifoldapi.py
index b900855..ebb6b4a 100644 (file)
@@ -25,6 +25,17 @@ class ManifoldAPI:
   def __getattr__(self, methodName):
       def func(*args, **kwds):
         result=getattr(self.proxy, methodName)(self.auth, *args, **kwds)
-        if debug: print methodName, self.auth, self.url,'->',result
+        if debug: print '===> backend call',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
+
+