1 # Manifold API Python interface
3 from myslice.config import Config
9 def __init__(self, auth=None, cainfo=None):
13 self.server = config.manifold_server
14 self.port = config.manifold_port
15 self.path = config.manifold_path
20 self.multicall = False
21 self.url = config.manifold_url()
22 self.proxy = xmlrpclib.Server(self.url, verbose=False, allow_none=True)
24 def __getattr__(self, methodName):
25 def func(*args, **kwds):
26 result=getattr(self.proxy, methodName)(self.auth, *args, **kwds)
27 if debug: print methodName, self.auth, self.url,'->',result