81169a9bd15228f2fdd899799160712d85f82e05
[plcapi.git] / PLC / Methods / UpdateSliceAttribute.py
1 # $Id: $
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, slice_tag_id, value):
10         slice_tag_id=patch(slice_tag_id,v42rename)
11         value=patch(value,v42rename)
12         result=UpdateSliceTag.call(self,auth,slice_tag_id,value)
13         return patch(result,v43rename)