X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plcapi.py;h=759207e591dda83d6e7606b6714d7e120e07677a;hb=0d7ec054304ab476624fedcc4ac8309dd6591d8b;hp=86d04c9839bd03f170a115bfe512ff6b9a556a17;hpb=1d88acf427c819b0dcb408372637f300c4dfdba7;p=nodemanager.git diff --git a/plcapi.py b/plcapi.py index 86d04c9..759207e 100644 --- a/plcapi.py +++ b/plcapi.py @@ -1,3 +1,5 @@ +# $Id$ + import safexmlrpc import hmac, sha @@ -15,7 +17,7 @@ class PLCAPI: the new session-based method. """ - def __init__(self, uri, cacert, auth, timeout = 300, **kwds): + def __init__(self, uri, cacert, auth, timeout = 90, **kwds): if isinstance(auth, (tuple, list)): (self.node_id, self.key) = auth self.session = None @@ -64,7 +66,8 @@ class PLCAPI: if self.session is not None: # Use session authentication - auth = {'session': self.session} + auth = {'AuthMethod': "session", + 'session': self.session} else: # Yes, this is the "canonicalization" method used. args = canonicalize(params)