From: Marc Fiuczynski Date: Sun, 24 May 2009 00:50:18 +0000 (+0000) Subject: match 'call' signature exactly X-Git-Tag: PLCAPI-4.3-15~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dd7c2d41e65f206cbfe6bff76d081b0d1282661f;p=plcapi.git match 'call' signature exactly --- diff --git a/PLC/Methods/AddNodeNetwork.py b/PLC/Methods/AddNodeNetwork.py index e697268c..98ce72a4 100644 --- a/PLC/Methods/AddNodeNetwork.py +++ b/PLC/Methods/AddNodeNetwork.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.AddInterface import AddInterface @@ -6,8 +6,8 @@ class AddNodeNetwork(AddInterface): """ Legacy version of AddInterface. """ 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 = AddInterface.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, node_id_or_hostname, interface_fields): + node_id_or_hostname=patch(node_id_or_hostname,v2rename) + interface_fields=patch(interface_fields,v2rename) + result=AddInterface.call(self,auth,node_id_or_hostname,interface_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/AddNodeNetworkSetting.py b/PLC/Methods/AddNodeNetworkSetting.py index 2b91216a..4478c9ca 100644 --- a/PLC/Methods/AddNodeNetworkSetting.py +++ b/PLC/Methods/AddNodeNetworkSetting.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.AddInterfaceTag import AddInterfaceTag @@ -6,8 +6,9 @@ class AddNodeNetworkSetting(AddInterfaceTag): """ Legacy version of AddInterfaceTag. """ 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 = AddInterfaceTag.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_id, tag_type_id_or_name, value): + interface_id=patch(interface_id,v2rename) + tag_type_id_or_name=patch(tag_type_id_or_name,v2rename) + value=patch(value,v2rename) + result=AddInterfaceTag.call(self,auth,interface_id,tag_type_id_or_name,value) + return patch(result,v43rename) diff --git a/PLC/Methods/AddNodeNetworkSettingType.py b/PLC/Methods/AddNodeNetworkSettingType.py index 9b3585fa..84785c7a 100644 --- a/PLC/Methods/AddNodeNetworkSettingType.py +++ b/PLC/Methods/AddNodeNetworkSettingType.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.AddTagType import AddTagType @@ -6,8 +6,7 @@ class AddNodeNetworkSettingType(AddTagType): """ Legacy version of AddTagType. """ 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 = AddTagType.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_fields): + tag_type_fields=patch(tag_type_fields,v2rename) + result=AddTagType.call(self,auth,tag_type_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/AddSliceAttribute.py b/PLC/Methods/AddSliceAttribute.py index 150be9cc..87826213 100644 --- a/PLC/Methods/AddSliceAttribute.py +++ b/PLC/Methods/AddSliceAttribute.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.AddSliceTag import AddSliceTag @@ -6,8 +6,11 @@ class AddSliceAttribute(AddSliceTag): """ Legacy version of AddSliceTag. """ 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 = AddSliceTag.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, slice_id_or_name, tag_type_id_or_name, value, node_id_or_hostname = None, nodegroup_id_or_name = None): + slice_id_or_name=patch(slice_id_or_name,v2rename) + tag_type_id_or_name=patch(tag_type_id_or_name,v2rename) + value=patch(value,v2rename) + node_id_or_hostname=patch(node_id_or_hostname,v2rename) + nodegroup_id_or_name=patch(nodegroup_id_or_name,v2rename) + result=AddSliceTag.call(self,auth,slice_id_or_name,tag_type_id_or_name,value,node_id_or_hostname,nodegroup_id_or_name) + return patch(result,v43rename) diff --git a/PLC/Methods/AddSliceAttributeType.py b/PLC/Methods/AddSliceAttributeType.py index d2c830ff..e1674b54 100644 --- a/PLC/Methods/AddSliceAttributeType.py +++ b/PLC/Methods/AddSliceAttributeType.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyAttributeTypes import v42rename, v43rename from PLC.Methods.AddTagType import AddTagType @@ -6,8 +6,7 @@ class AddSliceAttributeType(AddTagType): """ Legacy version of AddTagType. """ 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 = AddTagType.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_fields): + tag_type_fields=patch(tag_type_fields,v2rename) + result=AddTagType.call(self,auth,tag_type_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/DeleteNodeNetwork.py b/PLC/Methods/DeleteNodeNetwork.py index c6177ece..9178d59a 100644 --- a/PLC/Methods/DeleteNodeNetwork.py +++ b/PLC/Methods/DeleteNodeNetwork.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.DeleteInterface import DeleteInterface @@ -6,8 +6,7 @@ class DeleteNodeNetwork(DeleteInterface): """ Legacy version of DeleteInterface. """ 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 = DeleteInterface.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_id): + interface_id=patch(interface_id,v2rename) + result=DeleteInterface.call(self,auth,interface_id) + return patch(result,v43rename) diff --git a/PLC/Methods/DeleteNodeNetworkSetting.py b/PLC/Methods/DeleteNodeNetworkSetting.py index 5c9ca6ef..97679340 100644 --- a/PLC/Methods/DeleteNodeNetworkSetting.py +++ b/PLC/Methods/DeleteNodeNetworkSetting.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.DeleteInterfaceTag import DeleteInterfaceTag @@ -6,8 +6,7 @@ class DeleteNodeNetworkSetting(DeleteInterfaceTag): """ Legacy version of DeleteInterfaceTag. """ 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 = DeleteInterfaceTag.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_tag_id): + interface_tag_id=patch(interface_tag_id,v2rename) + result=DeleteInterfaceTag.call(self,auth,interface_tag_id) + return patch(result,v43rename) diff --git a/PLC/Methods/DeleteNodeNetworkSettingType.py b/PLC/Methods/DeleteNodeNetworkSettingType.py index f06c5a15..8ef8abf5 100644 --- a/PLC/Methods/DeleteNodeNetworkSettingType.py +++ b/PLC/Methods/DeleteNodeNetworkSettingType.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.DeleteTagType import DeleteTagType @@ -6,8 +6,7 @@ class DeleteNodeNetworkSettingType(DeleteTagType): """ Legacy version of DeleteTagType. """ 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 = DeleteTagType.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_id_or_name): + tag_type_id_or_name=patch(tag_type_id_or_name,v2rename) + result=DeleteTagType.call(self,auth,tag_type_id_or_name) + return patch(result,v43rename) diff --git a/PLC/Methods/DeleteSliceAttribute.py b/PLC/Methods/DeleteSliceAttribute.py index 733fe78f..05386f35 100644 --- a/PLC/Methods/DeleteSliceAttribute.py +++ b/PLC/Methods/DeleteSliceAttribute.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.DeleteSliceTag import DeleteSliceTag @@ -6,8 +6,7 @@ class DeleteSliceAttribute(DeleteSliceTag): """ Legacy version of DeleteSliceTag. """ 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 = DeleteSliceTag.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, slice_tag_id): + slice_tag_id=patch(slice_tag_id,v2rename) + result=DeleteSliceTag.call(self,auth,slice_tag_id) + return patch(result,v43rename) diff --git a/PLC/Methods/DeleteSliceAttributeType.py b/PLC/Methods/DeleteSliceAttributeType.py index 818f1788..22624dca 100644 --- a/PLC/Methods/DeleteSliceAttributeType.py +++ b/PLC/Methods/DeleteSliceAttributeType.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyAttributeTypes import v42rename, v43rename from PLC.Methods.DeleteTagType import DeleteTagType @@ -6,8 +6,7 @@ class DeleteSliceAttributeType(DeleteTagType): """ Legacy version of DeleteTagType. """ 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 = DeleteTagType.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_id_or_name): + tag_type_id_or_name=patch(tag_type_id_or_name,v2rename) + result=DeleteTagType.call(self,auth,tag_type_id_or_name) + return patch(result,v43rename) diff --git a/PLC/Methods/GetNodeNetworkSettingTypes.py b/PLC/Methods/GetNodeNetworkSettingTypes.py index 9d6026d9..18ff7d52 100644 --- a/PLC/Methods/GetNodeNetworkSettingTypes.py +++ b/PLC/Methods/GetNodeNetworkSettingTypes.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.GetTagTypes import GetTagTypes @@ -6,8 +6,8 @@ class GetNodeNetworkSettingTypes(GetTagTypes): """ Legacy version of GetTagTypes. """ 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 = GetTagTypes.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_filter = None, return_fields = None): + tag_type_filter=patch(tag_type_filter,v2rename) + return_fields=patch(return_fields,v2rename) + result=GetTagTypes.call(self,auth,tag_type_filter,return_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/GetNodeNetworkSettings.py b/PLC/Methods/GetNodeNetworkSettings.py index ec67ec2f..65d7bfcb 100644 --- a/PLC/Methods/GetNodeNetworkSettings.py +++ b/PLC/Methods/GetNodeNetworkSettings.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.GetInterfaceTags import GetInterfaceTags @@ -6,8 +6,8 @@ class GetNodeNetworkSettings(GetInterfaceTags): """ Legacy version of GetInterfaceTags. """ 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 = GetInterfaceTags.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_tag_filter = None, return_fields = None): + interface_tag_filter=patch(interface_tag_filter,v2rename) + return_fields=patch(return_fields,v2rename) + result=GetInterfaceTags.call(self,auth,interface_tag_filter,return_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/GetNodeNetworks.py b/PLC/Methods/GetNodeNetworks.py index 2946c804..e12b200e 100644 --- a/PLC/Methods/GetNodeNetworks.py +++ b/PLC/Methods/GetNodeNetworks.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.GetInterfaces import GetInterfaces @@ -6,8 +6,8 @@ class GetNodeNetworks(GetInterfaces): """ Legacy version of GetInterfaces. """ 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 = GetInterfaces.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_filter = None, return_fields = None): + interface_filter=patch(interface_filter,v2rename) + return_fields=patch(return_fields,v2rename) + result=GetInterfaces.call(self,auth,interface_filter,return_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/GetSliceAttributeTypes.py b/PLC/Methods/GetSliceAttributeTypes.py index 278cf702..c0767932 100644 --- a/PLC/Methods/GetSliceAttributeTypes.py +++ b/PLC/Methods/GetSliceAttributeTypes.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyAttributeTypes import v42rename, v43rename from PLC.Methods.GetTagTypes import GetTagTypes @@ -6,8 +6,8 @@ class GetSliceAttributeTypes(GetTagTypes): """ Legacy version of GetTagTypes. """ 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 = GetTagTypes.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_filter = None, return_fields = None): + tag_type_filter=patch(tag_type_filter,v2rename) + return_fields=patch(return_fields,v2rename) + result=GetTagTypes.call(self,auth,tag_type_filter,return_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/GetSliceAttributes.py b/PLC/Methods/GetSliceAttributes.py index be101989..85bd7622 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) diff --git a/PLC/Methods/UpdateNodeNetwork.py b/PLC/Methods/UpdateNodeNetwork.py index 3ba6940d..83536c44 100644 --- a/PLC/Methods/UpdateNodeNetwork.py +++ b/PLC/Methods/UpdateNodeNetwork.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.UpdateInterface import UpdateInterface @@ -6,8 +6,8 @@ class UpdateNodeNetwork(UpdateInterface): """ Legacy version of UpdateInterface. """ 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 = UpdateInterface.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_id, interface_fields): + interface_id=patch(interface_id,v2rename) + interface_fields=patch(interface_fields,v2rename) + result=UpdateInterface.call(self,auth,interface_id,interface_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/UpdateNodeNetworkSetting.py b/PLC/Methods/UpdateNodeNetworkSetting.py index 689f3c2e..2c429c8a 100644 --- a/PLC/Methods/UpdateNodeNetworkSetting.py +++ b/PLC/Methods/UpdateNodeNetworkSetting.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.UpdateInterfaceTag import UpdateInterfaceTag @@ -6,8 +6,8 @@ class UpdateNodeNetworkSetting(UpdateInterfaceTag): """ Legacy version of UpdateInterfaceTag. """ 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 = UpdateInterfaceTag.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, interface_tag_id, value): + interface_tag_id=patch(interface_tag_id,v2rename) + value=patch(value,v2rename) + result=UpdateInterfaceTag.call(self,auth,interface_tag_id,value) + return patch(result,v43rename) diff --git a/PLC/Methods/UpdateNodeNetworkSettingType.py b/PLC/Methods/UpdateNodeNetworkSettingType.py index 503fba1b..97b7368d 100644 --- a/PLC/Methods/UpdateNodeNetworkSettingType.py +++ b/PLC/Methods/UpdateNodeNetworkSettingType.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.UpdateTagType import UpdateTagType @@ -6,8 +6,8 @@ class UpdateNodeNetworkSettingType(UpdateTagType): """ Legacy version of UpdateTagType. """ 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 = UpdateTagType.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_id_or_name, tag_type_fields): + tag_type_id_or_name=patch(tag_type_id_or_name,v2rename) + tag_type_fields=patch(tag_type_fields,v2rename) + result=UpdateTagType.call(self,auth,tag_type_id_or_name,tag_type_fields) + return patch(result,v43rename) diff --git a/PLC/Methods/UpdateSliceAttribute.py b/PLC/Methods/UpdateSliceAttribute.py index 1fe3e932..4328e823 100644 --- a/PLC/Methods/UpdateSliceAttribute.py +++ b/PLC/Methods/UpdateSliceAttribute.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.UpdateSliceTag import UpdateSliceTag @@ -6,8 +6,8 @@ class UpdateSliceAttribute(UpdateSliceTag): """ Legacy version of UpdateSliceTag. """ 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 = UpdateSliceTag.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, slice_tag_id, value): + slice_tag_id=patch(slice_tag_id,v2rename) + value=patch(value,v2rename) + result=UpdateSliceTag.call(self,auth,slice_tag_id,value) + return patch(result,v43rename) diff --git a/PLC/Methods/UpdateSliceAttributeType.py b/PLC/Methods/UpdateSliceAttributeType.py index 3b63cbd6..43ad46b8 100644 --- a/PLC/Methods/UpdateSliceAttributeType.py +++ b/PLC/Methods/UpdateSliceAttributeType.py @@ -1,4 +1,4 @@ - +# $Id: $ from PLC.v42Legacy import patch from PLC.v42LegacyAttributeTypes import v42rename, v43rename from PLC.Methods.UpdateTagType import UpdateTagType @@ -6,8 +6,8 @@ class UpdateSliceAttributeType(UpdateTagType): """ Legacy version of UpdateTagType. """ 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 = UpdateTagType.call(self,auth,*newargs,**newkwds) - return patch(results,v43rename) + def call(self, auth, tag_type_id_or_name, tag_type_fields): + tag_type_id_or_name=patch(tag_type_id_or_name,v2rename) + tag_type_fields=patch(tag_type_fields,v2rename) + result=UpdateTagType.call(self,auth,tag_type_id_or_name,tag_type_fields) + return patch(result,v43rename)