X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FLegacy%2Fv42legacy.py;h=2e170fc0df047347e97951adcfb13fab8bfeb498;hb=0a3159ac826bb3d94efeef7032150819823ae3e7;hp=5e6cdae8478913e4717ec5f5cb48aed9e15672b7;hpb=382051072be8e35a57c704f6e3aa4c55f9a43e61;p=plcapi.git diff --git a/PLC/Legacy/v42legacy.py b/PLC/Legacy/v42legacy.py index 5e6cdae..2e170fc 100644 --- a/PLC/Legacy/v42legacy.py +++ b/PLC/Legacy/v42legacy.py @@ -30,11 +30,13 @@ def make_class (legacyname,newname,path,import_deep,v42rename,v43rename): #print "%s: self.caller = %s, auth=%s, self.api=%s, self=%s" % (legacyname,self.caller,auth,self.api,self) if not hasattr(self,"auth"): self.auth = None + if self.auth == None and auth <> None: self.auth = auth - if self.auth <> None: + if self.auth <> None and self.caller == None: a = PLC.Auth.map_auth(auth) + print "a = %s" % a a.check(self,auth,*args) newargs=[patch(x,v42rename) for x in args]