X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plcapi.py;fp=plcapi.py;h=86d04c9839bd03f170a115bfe512ff6b9a556a17;hb=1d88acf427c819b0dcb408372637f300c4dfdba7;hp=e89663d5644960534fa015b0e555edb28f31f3c2;hpb=45fe2cdaa18e28009184e95c2bed2346e2fc3eda;p=nodemanager.git diff --git a/plcapi.py b/plcapi.py index e89663d..86d04c9 100644 --- a/plcapi.py +++ b/plcapi.py @@ -15,7 +15,7 @@ class PLCAPI: the new session-based method. """ - def __init__(self, uri, auth, **kwds): + def __init__(self, uri, cacert, auth, timeout = 300, **kwds): if isinstance(auth, (tuple, list)): (self.node_id, self.key) = auth self.session = None @@ -23,7 +23,7 @@ class PLCAPI: self.node_id = self.key = None self.session = auth - self.server = safexmlrpc.ServerProxy(uri, allow_none = 1, **kwds) + self.server = safexmlrpc.ServerProxy(uri, cacert, timeout, allow_none = 1, **kwds) def add_auth(self, function): """