21d6ac3ba809f13becf63b38531778d8546a1aab
[plcapi.git] / PLC / Methods / UpdateSliceAttributeType.py
1
2 from PLC.v42Legacy import patch
3 from PLC.v42LegacyTypes import v42rename, v43rename
4 from PLC.Methods.UpdateTagType import UpdateTagType
5 class UpdateSliceAttributeType(UpdateTagType):
6     """ Legacy version of UpdateTagType. """
7     skip_typecheck = True
8     def call(self, auth, *args, **kwds):
9         newargs=[patch(x,v42rename) for x in args]
10         newkwds=dict ( [ (k,patch(v,v42rename)) for (k,v) in kwds.iteritems() ] )
11         results = UpdateTagType.call(self,auth,*newargs,**newkwds)
12         return patch(results,v43rename)