X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldapi.py;h=18c555cada9401a9019df99347a9e9f6a31d77ea;hb=20835fc7deb0d149293351f032af6e5d9e4a1952;hp=40f3e0c0c8f894e70c62aeb34d322163c7c6090a;hpb=b709866ba93d98c32127ff4deae5b783e271e5b3;p=myslice.git diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index 40f3e0c0..18c555ca 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -17,11 +17,11 @@ class ManifoldAPI: self.calls = {} self.multicall = False self.url = config.manifold_url - self.proxy = xmlrpclib.Server(self.url, verbose=False, allow_none=True) + self.server = xmlrpclib.Server(self.url, verbose=False, allow_none=True) def __getattr__(self, methodName): def func(*args, **kwds): - result=getattr(self.proxy, methodName)(self.auth, *args, **kwds) + result=getattr(self.server, methodName)(self.auth, *args, **kwds) ### debug if debug: print '===> backend call',methodName, self.auth, self.url,'->', @@ -33,13 +33,11 @@ class ManifoldAPI: return result return func - # 4amine : xxx def send_manifold_query (self, manifold_query): - (action,method)= (manifold_query.action,manifold_query.method) + (action,subject)= (manifold_query.action,manifold_query.subject) if action=='get': - return self.proxy.Get(self.auth, method, manifold_query.filters, {}, manifold_query.fields) + return self.server.Get(self.auth, subject, manifold_query.filters, {}, manifold_query.fields) # xxx... - elif action=='others': - return None - + else: + print "WARNING: ManifoldAPI.send_manifold_query: only 'get' implemented for now"