X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FUpdateSliceAttributeType.py;fp=PLC%2FMethods%2FUpdateSliceAttributeType.py;h=21d6ac3ba809f13becf63b38531778d8546a1aab;hb=edbf1923b57a320ef85f61882240ac2c4a3306f0;hp=0000000000000000000000000000000000000000;hpb=0a3159ac826bb3d94efeef7032150819823ae3e7;p=plcapi.git diff --git a/PLC/Methods/UpdateSliceAttributeType.py b/PLC/Methods/UpdateSliceAttributeType.py new file mode 100644 index 0000000..21d6ac3 --- /dev/null +++ b/PLC/Methods/UpdateSliceAttributeType.py @@ -0,0 +1,12 @@ + +from PLC.v42Legacy import patch +from PLC.v42LegacyTypes import v42rename, v43rename +from PLC.Methods.UpdateTagType import UpdateTagType +class UpdateSliceAttributeType(UpdateTagType): + """ Legacy version of UpdateTagType. """ + skip_typecheck = True + def call(self, auth, *args, **kwds): + newargs=[patch(x,v42rename) for x in args] + newkwds=dict ( [ (k,patch(v,v42rename)) for (k,v) in kwds.iteritems() ] ) + results = UpdateTagType.call(self,auth,*newargs,**newkwds) + return patch(results,v43rename)