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