git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45fe2cd
)
pass cacert and timeout to safexmlrpc init
author
Mark Huang
<mlhuang@cs.princeton.edu>
Sat, 18 Nov 2006 18:15:55 +0000
(18:15 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Sat, 18 Nov 2006 18:15:55 +0000
(18:15 +0000)
plcapi.py
patch
|
blob
|
history
diff --git
a/plcapi.py
b/plcapi.py
index
e89663d
..
86d04c9
100644
(file)
--- a/
plcapi.py
+++ b/
plcapi.py
@@
-15,7
+15,7
@@
class PLCAPI:
the new session-based method.
"""
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
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.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):
"""
def add_auth(self, function):
"""