X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fmanifold_api.py;fp=engine%2Fmanifold_api.py;h=0000000000000000000000000000000000000000;hb=a222cef0a10a5517349f05cea0e382b35e3a14a6;hp=c166bd8c0bcbc3afa229f49bf4f2008efa7252c7;hpb=6373f4c6f48b4a2e049372ad6c6dd4adf9c95b69;p=unfold.git diff --git a/engine/manifold_api.py b/engine/manifold_api.py deleted file mode 100644 index c166bd8c..00000000 --- a/engine/manifold_api.py +++ /dev/null @@ -1,27 +0,0 @@ -# Manifold API Python interface -import xmlrpclib -from myslice.config import Config - -class ManifoldAPI: - - def __init__(self, auth=None, cainfo=None): - - config = Config() - self.auth = auth - self.server = config.manifold_server - self.port = config.manifold_port - self.path = config.manifold_path - self.cainfo = cainfo - self.errors = [] - self.trace = [] - self.calls = {} - self.multicall = False - self.url = config.manifold_url() - self.proxy = xmlrpclib.Server(self.url, verbose=False, allow_none=True) - - def __getattr__(self, methodName): - def func(*args, **kwds): - print methodName, self.auth, self.url - result=getattr(self.proxy, methodName)(self.auth, *args, **kwds) - return result - return func