X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSliceAttributes.py;h=85bd76222877cad2f6bec54f88fff3eccfc302a5;hb=dd7c2d41e65f206cbfe6bff76d081b0d1282661f;hp=be101989e731126a77aa59cfae770ddfe195e140;hpb=5e02c827f0b3c3c21dcaf3892aa6561dedc4b3cc;p=plcapi.git diff --git a/PLC/Methods/GetSliceAttributes.py b/PLC/Methods/GetSliceAttributes.py index be10198..85bd762 100644 --- a/PLC/Methods/GetSliceAttributes.py +++ b/PLC/Methods/GetSliceAttributes.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.GetSliceTags import GetSliceTags @@ -6,8 +6,8 @@ class GetSliceAttributes(GetSliceTags): """ Legacy version of GetSliceTags. """ skip_typecheck = True status = "deprecated" - def call(self, auth, *args, **kwds): - newargs=[patch(x,v42rename) for x in args] - newkwds=dict ( [ (k,patch(v,v42rename)) for (k,v) in kwds.iteritems() ] ) - results = GetSliceTags.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, slice_tag_filter = None, return_fields = None): + slice_tag_filter=patch(slice_tag_filter,v2rename) + return_fields=patch(return_fields,v2rename) + result=GetSliceTags.call(self,auth,slice_tag_filter,return_fields) + return patch(result,v43rename)