X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldapi.py;h=f23ba20ce3efef25b60042df573b31f2221afdb4;hb=5f03119b3bc1f16e68dd805c4b5773ba1ee7148e;hp=042e127ee6ba69001804ee83d23677fe00cea4a4;hpb=491bd4d5497b5c431ab35716425f4c95fd2c3696;p=unfold.git diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index 042e127e..f23ba20c 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -20,13 +20,13 @@ class ManifoldAPI: def __init__(self, auth=None, cainfo=None): - config = Config() self.auth = auth self.cainfo = cainfo self.errors = [] self.trace = [] self.calls = {} self.multicall = False + config = Config() self.url = config.manifold_url() self.server = xmlrpclib.Server(self.url, verbose=False, allow_none=True) @@ -55,7 +55,11 @@ class ManifoldAPI: try: if debug: print "====> ManifoldAPI.%s"%methodName,"auth",self.auth,"args",args,"kwds",kwds - result=getattr(self.server, methodName)(self.auth, *args, **kwds) + annotations = { + 'authentication': self.auth + } + args += (annotations,) + result=getattr(self.server, methodName)(*args, **kwds) if debug: print '<==== backend call %s(*%s,**%s) returned'%(methodName,args,kwds), print '.ctd. Authmethod=',self.auth['AuthMethod'], self.url,'->',