85bd76222877cad2f6bec54f88fff3eccfc302a5
[plcapi.git] / PLC / Methods / GetSliceAttributes.py
1 # $Id: $
2 from PLC.v42Legacy import patch
3 from PLC.v42LegacySliceAttributes import v42rename, v43rename
4 from PLC.Methods.GetSliceTags import GetSliceTags
5 class GetSliceAttributes(GetSliceTags):
6     """ Legacy version of GetSliceTags. """
7     skip_typecheck = True
8     status = "deprecated"
9     def call(self, auth, slice_tag_filter = None, return_fields = None):
10         slice_tag_filter=patch(slice_tag_filter,v2rename)
11         return_fields=patch(return_fields,v2rename)
12         result=GetSliceTags.call(self,auth,slice_tag_filter,return_fields)
13         return patch(result,v43rename)