From dd7c2d41e65f206cbfe6bff76d081b0d1282661f Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Sun, 24 May 2009 00:50:18 +0000 Subject: [PATCH] match 'call' signature exactly --- PLC/Methods/AddNodeNetwork.py | 12 ++++++------ PLC/Methods/AddNodeNetworkSetting.py | 13 +++++++------ PLC/Methods/AddNodeNetworkSettingType.py | 11 +++++------ PLC/Methods/AddSliceAttribute.py | 15 +++++++++------ PLC/Methods/AddSliceAttributeType.py | 11 +++++------ PLC/Methods/DeleteNodeNetwork.py | 11 +++++------ PLC/Methods/DeleteNodeNetworkSetting.py | 11 +++++------ PLC/Methods/DeleteNodeNetworkSettingType.py | 11 +++++------ PLC/Methods/DeleteSliceAttribute.py | 11 +++++------ PLC/Methods/DeleteSliceAttributeType.py | 11 +++++------ PLC/Methods/GetNodeNetworkSettingTypes.py | 12 ++++++------ PLC/Methods/GetNodeNetworkSettings.py | 12 ++++++------ PLC/Methods/GetNodeNetworks.py | 12 ++++++------ PLC/Methods/GetSliceAttributeTypes.py | 12 ++++++------ PLC/Methods/GetSliceAttributes.py | 12 ++++++------ PLC/Methods/UpdateNodeNetwork.py | 12 ++++++------ PLC/Methods/UpdateNodeNetworkSetting.py | 12 ++++++------ PLC/Methods/UpdateNodeNetworkSettingType.py | 12 ++++++------ PLC/Methods/UpdateSliceAttribute.py | 12 ++++++------ PLC/Methods/UpdateSliceAttributeType.py | 12 ++++++------ 20 files changed, 117 insertions(+), 120 deletions(-) diff --git a/PLC/Methods/AddNodeNetwork.py b/PLC/Methods/AddNodeNetwork.py index e697268..98ce72a 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 2b91216..4478c9c 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 9b3585f..84785c7 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 150be9c..8782621 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 d2c830f..e1674b5 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 c6177ec..9178d59 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 5c9ca6e..9767934 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 f06c5a1..8ef8abf 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 733fe78..05386f3 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 818f178..22624dc 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 9d6026d..18ff7d5 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 ec67ec2..65d7bfc 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 2946c80..e12b200 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 278cf70..c076793 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 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) diff --git a/PLC/Methods/UpdateNodeNetwork.py b/PLC/Methods/UpdateNodeNetwork.py index 3ba6940..83536c4 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 689f3c2..2c429c8 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 503fba1..97b7368 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 1fe3e93..4328e82 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 3b63cbd..43ad46b 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) -- 2.43.0