move legacy v42 methods to Legacy/ sub directory
[plcapi.git] / PLC / Legacy / 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     status = "deprecated"
8     def call(self, auth, slice_tag_id, value):
9         slice_tag_id=patch(slice_tag_id,v42rename)
10         value=patch(value,v42rename)
11         result=UpdateSliceTag.call(self,auth,slice_tag_id,value)
12         return patch(result,v43rename)