X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fmanifoldapi.py;h=40b95c1dddce80caddc403b90c7de70b5cf8cf34;hb=d48845006f4fdd65c7f03782a45a785936edf8e3;hp=b125a595e264bfb3a83d54a599b59e00ae7054f0;hpb=a222cef0a10a5517349f05cea0e382b35e3a14a6;p=unfold.git diff --git a/engine/manifoldapi.py b/engine/manifoldapi.py index b125a595..40b95c1d 100644 --- a/engine/manifoldapi.py +++ b/engine/manifoldapi.py @@ -1,5 +1,6 @@ # Manifold API Python interface import xmlrpclib + from myslice.config import Config debug=True @@ -24,6 +25,19 @@ 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)= (raw_query.action,raw_query.method) + if action=='get': + return self.Get(method, + # need to fill in the other args here + ) + # xxx... + elif action=='others': + return None + +