From a37a6d2be8acf14bd2b133f1db24fe4b8367908c Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 29 Nov 2006 19:05:37 +0000 Subject: [PATCH] - log affected object_ids --- PLC/Methods/UpdateAddress.py | 1 + PLC/Methods/UpdateAddressType.py | 1 + PLC/Methods/UpdateConfFile.py | 1 + PLC/Methods/UpdateKey.py | 1 + PLC/Methods/UpdateMessage.py | 1 + PLC/Methods/UpdateNode.py | 1 + PLC/Methods/UpdateNodeGroup.py | 1 + PLC/Methods/UpdateNodeNetwork.py | 3 ++- PLC/Methods/UpdatePCU.py | 1 + PLC/Methods/UpdatePerson.py | 1 + PLC/Methods/UpdateSite.py | 1 + PLC/Methods/UpdateSlice.py | 1 + PLC/Methods/UpdateSliceAttribute.py | 2 +- PLC/Methods/UpdateSliceAttributeType.py | 1 + 14 files changed, 15 insertions(+), 2 deletions(-) diff --git a/PLC/Methods/UpdateAddress.py b/PLC/Methods/UpdateAddress.py index 2fdc1948..dd467c17 100644 --- a/PLC/Methods/UpdateAddress.py +++ b/PLC/Methods/UpdateAddress.py @@ -45,5 +45,6 @@ class UpdateAddress(Method): address.update(address_fields) address.sync() + self.object_ids = [address['address_id']] return 1 diff --git a/PLC/Methods/UpdateAddressType.py b/PLC/Methods/UpdateAddressType.py index a6309a68..8dd91597 100644 --- a/PLC/Methods/UpdateAddressType.py +++ b/PLC/Methods/UpdateAddressType.py @@ -37,5 +37,6 @@ class UpdateAddressType(Method): address_type.update(address_type_fields) address_type.sync() + self.object_ids = [address_type['address_type_id']] return 1 diff --git a/PLC/Methods/UpdateConfFile.py b/PLC/Methods/UpdateConfFile.py index 7f9b8fcd..4e94208c 100644 --- a/PLC/Methods/UpdateConfFile.py +++ b/PLC/Methods/UpdateConfFile.py @@ -37,5 +37,6 @@ class UpdateConfFile(Method): conf_file = conf_files[0] conf_file.update(conf_file_fields) conf_file.sync() + self.object_ids = [conf_file['conf_file_id']] return 1 diff --git a/PLC/Methods/UpdateKey.py b/PLC/Methods/UpdateKey.py index 5f6ecc44..5e14b9a3 100644 --- a/PLC/Methods/UpdateKey.py +++ b/PLC/Methods/UpdateKey.py @@ -44,5 +44,6 @@ class UpdateKey(Method): key.update(key_fields) key.sync() + self.object_ids = [key['key_id']] return 1 diff --git a/PLC/Methods/UpdateMessage.py b/PLC/Methods/UpdateMessage.py index f28ce127..61ac458c 100644 --- a/PLC/Methods/UpdateMessage.py +++ b/PLC/Methods/UpdateMessage.py @@ -38,5 +38,6 @@ class UpdateMessage(Method): message.update(message_fields) message.sync() + self.object_ids = [message['message_id']] return 1 diff --git a/PLC/Methods/UpdateNode.py b/PLC/Methods/UpdateNode.py index ae42bb03..0e405644 100644 --- a/PLC/Methods/UpdateNode.py +++ b/PLC/Methods/UpdateNode.py @@ -58,5 +58,6 @@ class UpdateNode(Method): node.update(node_fields) node.sync() + self.object_ids = [node['node_id']] return 1 diff --git a/PLC/Methods/UpdateNodeGroup.py b/PLC/Methods/UpdateNodeGroup.py index f655c67c..9d7798c6 100644 --- a/PLC/Methods/UpdateNodeGroup.py +++ b/PLC/Methods/UpdateNodeGroup.py @@ -38,5 +38,6 @@ class UpdateNodeGroup(Method): nodegroup.update(nodegroup_fields) nodegroup.sync() + self.object_ids = [nodegroup['nodegroup_id']] return 1 diff --git a/PLC/Methods/UpdateNodeNetwork.py b/PLC/Methods/UpdateNodeNetwork.py index 149c5418..a5b6ac5b 100644 --- a/PLC/Methods/UpdateNodeNetwork.py +++ b/PLC/Methods/UpdateNodeNetwork.py @@ -61,5 +61,6 @@ class UpdateNodeNetwork(Method): # Update node network nodenetwork.update(nodenetwork_fields) nodenetwork.sync() - + self.object_ids = [nodenetwork['nodenetwork_id']] + return 1 diff --git a/PLC/Methods/UpdatePCU.py b/PLC/Methods/UpdatePCU.py index e22227b8..99415f22 100644 --- a/PLC/Methods/UpdatePCU.py +++ b/PLC/Methods/UpdatePCU.py @@ -44,5 +44,6 @@ class UpdatePCU(Method): pcu.update(pcu_fields) pcu.sync() + self.object_ids = [pcu['pcu_id']] return 1 diff --git a/PLC/Methods/UpdatePerson.py b/PLC/Methods/UpdatePerson.py index 7f769f5f..5d0161c0 100644 --- a/PLC/Methods/UpdatePerson.py +++ b/PLC/Methods/UpdatePerson.py @@ -52,5 +52,6 @@ class UpdatePerson(Method): person.update(person_fields) person.sync() + self.object_ids = [person['person_id']] return 1 diff --git a/PLC/Methods/UpdateSite.py b/PLC/Methods/UpdateSite.py index 276d47f6..0e570f2e 100644 --- a/PLC/Methods/UpdateSite.py +++ b/PLC/Methods/UpdateSite.py @@ -58,5 +58,6 @@ class UpdateSite(Method): site.update(site_fields) site.sync() + self.object_ids = [site['site_id']] return 1 diff --git a/PLC/Methods/UpdateSlice.py b/PLC/Methods/UpdateSlice.py index 5ac3abc8..a9d6cb27 100644 --- a/PLC/Methods/UpdateSlice.py +++ b/PLC/Methods/UpdateSlice.py @@ -84,5 +84,6 @@ class UpdateSlice(Method): raise PLCInvalidArgument, "Cannot renew a slice with an empty description or URL" slice.sync() + self.object_ids = [slice['slice_id']] return 1 diff --git a/PLC/Methods/UpdateSliceAttribute.py b/PLC/Methods/UpdateSliceAttribute.py index a9e2ff5d..a9f26ec7 100644 --- a/PLC/Methods/UpdateSliceAttribute.py +++ b/PLC/Methods/UpdateSliceAttribute.py @@ -54,5 +54,5 @@ class UpdateSliceAttribute(Method): slice_attribute['value'] = value slice_attribute.sync() - + self.object_ids = [slice_attribute['slice_attribute_id']] return 1 diff --git a/PLC/Methods/UpdateSliceAttributeType.py b/PLC/Methods/UpdateSliceAttributeType.py index 2767e60f..a6c77014 100644 --- a/PLC/Methods/UpdateSliceAttributeType.py +++ b/PLC/Methods/UpdateSliceAttributeType.py @@ -38,5 +38,6 @@ class UpdateSliceAttributeType(Method): attribute_type.update(attribute_type_fields) attribute_type.sync() + self.object_ids = [attribute_type['attribute_type_id']] return 1 -- 2.47.0