From d4c363a3ee55334eacd91f303adf6ecc20055d1e Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 29 Nov 2006 18:30:10 +0000 Subject: [PATCH] - - removed anything having to do with event_type/event_object --- PLC/Methods/AddAddressType.py | 2 -- PLC/Methods/AddAddressTypeToAddress.py | 2 -- PLC/Methods/AddBootState.py | 2 -- PLC/Methods/AddConfFile.py | 2 -- PLC/Methods/AddConfFileToNode.py | 2 -- PLC/Methods/AddConfFileToNodeGroup.py | 2 -- PLC/Methods/AddKeyType.py | 2 -- PLC/Methods/AddMessage.py | 2 -- PLC/Methods/AddNetworkMethod.py | 2 -- PLC/Methods/AddNetworkType.py | 2 -- PLC/Methods/AddNode.py | 2 -- PLC/Methods/AddNodeGroup.py | 2 -- PLC/Methods/AddNodeNetwork.py | 2 -- PLC/Methods/AddNodeToNodeGroup.py | 2 -- PLC/Methods/AddNodeToPCU.py | 2 -- PLC/Methods/AddPCU.py | 2 -- PLC/Methods/AddPerson.py | 2 -- PLC/Methods/AddPersonKey.py | 2 -- PLC/Methods/AddPersonToSite.py | 2 -- PLC/Methods/AddPersonToSlice.py | 2 -- PLC/Methods/AddRole.py | 2 -- PLC/Methods/AddRoleToPerson.py | 2 -- PLC/Methods/AddSite.py | 2 -- PLC/Methods/AddSiteAddress.py | 2 -- PLC/Methods/AddSlice.py | 2 -- PLC/Methods/AddSliceAttribute.py | 2 -- PLC/Methods/AddSliceAttributeType.py | 2 -- PLC/Methods/AddSliceInstantiation.py | 2 -- PLC/Methods/AddSliceToNodes.py | 2 -- PLC/Methods/DeleteAddress.py | 2 -- PLC/Methods/DeleteAddressType.py | 2 -- PLC/Methods/DeleteAddressTypeFromAddress.py | 2 -- PLC/Methods/DeleteBootState.py | 2 -- PLC/Methods/DeleteConfFile.py | 2 -- PLC/Methods/DeleteConfFileFromNode.py | 2 -- PLC/Methods/DeleteConfFileFromNodeGroup.py | 2 -- PLC/Methods/DeleteKey.py | 2 -- PLC/Methods/DeleteKeyType.py | 2 -- PLC/Methods/DeleteMessage.py | 2 -- PLC/Methods/DeleteNetworkMethod.py | 2 -- PLC/Methods/DeleteNetworkType.py | 2 -- PLC/Methods/DeleteNode.py | 2 -- PLC/Methods/DeleteNodeFromNodeGroup.py | 2 -- PLC/Methods/DeleteNodeFromPCU.py | 2 -- PLC/Methods/DeleteNodeGroup.py | 2 -- PLC/Methods/DeleteNodeNetwork.py | 2 -- PLC/Methods/DeletePCU.py | 2 -- PLC/Methods/DeletePerson.py | 2 -- PLC/Methods/DeletePersonFromSite.py | 2 -- PLC/Methods/DeletePersonFromSlice.py | 2 -- PLC/Methods/DeleteRole.py | 2 -- PLC/Methods/DeleteRoleFromPerson.py | 2 -- PLC/Methods/DeleteSession.py | 2 -- PLC/Methods/DeleteSite.py | 2 -- PLC/Methods/DeleteSlice.py | 2 -- PLC/Methods/DeleteSliceAttribute.py | 2 -- PLC/Methods/DeleteSliceAttributeType.py | 2 -- PLC/Methods/DeleteSliceFromNodes.py | 2 -- PLC/Methods/DeleteSliceInstantiation.py | 2 -- PLC/Methods/GetAddressTypes.py | 2 -- PLC/Methods/GetAddresses.py | 2 -- PLC/Methods/GetBootStates.py | 2 -- PLC/Methods/GetConfFiles.py | 2 -- PLC/Methods/GetEvents.py | 2 -- PLC/Methods/GetKeyTypes.py | 2 -- PLC/Methods/GetKeys.py | 2 -- PLC/Methods/GetMessages.py | 2 -- PLC/Methods/GetNetworkMethods.py | 2 -- PLC/Methods/GetNetworkTypes.py | 2 -- PLC/Methods/GetNodeGroups.py | 2 -- PLC/Methods/GetNodeNetworks.py | 2 -- PLC/Methods/GetNodes.py | 2 -- PLC/Methods/GetPCUs.py | 2 -- PLC/Methods/GetPeerData.py | 2 -- PLC/Methods/GetPeers.py | 2 -- PLC/Methods/GetPersons.py | 2 -- PLC/Methods/GetRoles.py | 2 -- PLC/Methods/GetSession.py | 2 -- PLC/Methods/GetSites.py | 2 -- PLC/Methods/GetSliceAttributeTypes.py | 2 -- PLC/Methods/GetSliceAttributes.py | 2 -- PLC/Methods/GetSliceInstantiations.py | 2 -- PLC/Methods/GetSlices.py | 2 -- PLC/Methods/GetSlivers.py | 2 -- 84 files changed, 168 deletions(-) diff --git a/PLC/Methods/AddAddressType.py b/PLC/Methods/AddAddressType.py index 7c5d59c..0dcc66d 100644 --- a/PLC/Methods/AddAddressType.py +++ b/PLC/Methods/AddAddressType.py @@ -25,8 +25,6 @@ class AddAddressType(Method): returns = Parameter(int, 'New address_type_id (> 0) if successful') - event_type = 'Add' - object_type = 'AddressType' def call(self, auth, address_type_fields): address_type_fields = dict(filter(can_update, address_type_fields.items())) diff --git a/PLC/Methods/AddAddressTypeToAddress.py b/PLC/Methods/AddAddressTypeToAddress.py index 5f4d1c1..b4cf700 100644 --- a/PLC/Methods/AddAddressTypeToAddress.py +++ b/PLC/Methods/AddAddressTypeToAddress.py @@ -25,8 +25,6 @@ class AddAddressTypeToAddress(Method): returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'Address' def call(self, auth, address_type_id_or_name, address_id): address_types = AddressTypes(self.api, [address_type_id_or_name]) diff --git a/PLC/Methods/AddBootState.py b/PLC/Methods/AddBootState.py index 9572332..fc75254 100644 --- a/PLC/Methods/AddBootState.py +++ b/PLC/Methods/AddBootState.py @@ -20,8 +20,6 @@ class AddBootState(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'BootState' def call(self, auth, name): boot_state = BootState(self.api) diff --git a/PLC/Methods/AddConfFile.py b/PLC/Methods/AddConfFile.py index 1e04d8d..5cc0828 100644 --- a/PLC/Methods/AddConfFile.py +++ b/PLC/Methods/AddConfFile.py @@ -26,8 +26,6 @@ class AddConfFile(Method): returns = Parameter(int, 'New conf_file_id (> 0) if successful') - event_type = 'Add' - object_type = 'ConfFile' def call(self, auth, conf_file_fields): conf_file_fields = dict(filter(can_update, conf_file_fields.items())) diff --git a/PLC/Methods/AddConfFileToNode.py b/PLC/Methods/AddConfFileToNode.py index 47886a8..7bcdcc0 100644 --- a/PLC/Methods/AddConfFileToNode.py +++ b/PLC/Methods/AddConfFileToNode.py @@ -24,8 +24,6 @@ class AddConfFileToNode(Method): returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'ConfFile' def call(self, auth, conf_file_id, node_id_or_hostname): # Get configuration file diff --git a/PLC/Methods/AddConfFileToNodeGroup.py b/PLC/Methods/AddConfFileToNodeGroup.py index c81f85f..9212f70 100644 --- a/PLC/Methods/AddConfFileToNodeGroup.py +++ b/PLC/Methods/AddConfFileToNodeGroup.py @@ -25,8 +25,6 @@ class AddConfFileToNodeGroup(Method): returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'ConfFile' def call(self, auth, conf_file_id, nodegroup_id_or_name): # Get configuration file diff --git a/PLC/Methods/AddKeyType.py b/PLC/Methods/AddKeyType.py index 83ec584..b3690a8 100644 --- a/PLC/Methods/AddKeyType.py +++ b/PLC/Methods/AddKeyType.py @@ -20,8 +20,6 @@ class AddKeyType(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'KeyType' def call(self, auth, name): key_type = KeyType(self.api) diff --git a/PLC/Methods/AddMessage.py b/PLC/Methods/AddMessage.py index 7de64cb..62a2da7 100644 --- a/PLC/Methods/AddMessage.py +++ b/PLC/Methods/AddMessage.py @@ -21,8 +21,6 @@ class AddMessage(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'Message' def call(self, auth, message_fields): message = Message(self.api, message_fields) diff --git a/PLC/Methods/AddNetworkMethod.py b/PLC/Methods/AddNetworkMethod.py index 16e33b5..11f3845 100644 --- a/PLC/Methods/AddNetworkMethod.py +++ b/PLC/Methods/AddNetworkMethod.py @@ -20,8 +20,6 @@ class AddNetworkMethod(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'NetworkMethod' def call(self, auth, name): network_method = NetworkMethod(self.api) diff --git a/PLC/Methods/AddNetworkType.py b/PLC/Methods/AddNetworkType.py index f22c87b..6533053 100644 --- a/PLC/Methods/AddNetworkType.py +++ b/PLC/Methods/AddNetworkType.py @@ -20,8 +20,6 @@ class AddNetworkType(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'NetworkType' def call(self, auth, name): network_type = NetworkType(self.api) diff --git a/PLC/Methods/AddNode.py b/PLC/Methods/AddNode.py index 2fc9837..17f0bff 100644 --- a/PLC/Methods/AddNode.py +++ b/PLC/Methods/AddNode.py @@ -33,8 +33,6 @@ class AddNode(Method): returns = Parameter(int, 'New node_id (> 0) if successful') - event_type = 'Add' - object_type = 'Node' def call(self, auth, site_id_or_login_base, node_fields): node_fields = dict(filter(can_update, node_fields.items())) diff --git a/PLC/Methods/AddNodeGroup.py b/PLC/Methods/AddNodeGroup.py index 864fe8e..23462f7 100644 --- a/PLC/Methods/AddNodeGroup.py +++ b/PLC/Methods/AddNodeGroup.py @@ -26,8 +26,6 @@ class AddNodeGroup(Method): returns = Parameter(int, 'New nodegroup_id (> 0) if successful') - event_type = 'Add' - object_type = 'NodeGroup' def call(self, auth, nodegroup_fields): nodegroup_fields = dict(filter(can_update, nodegroup_fields.items())) diff --git a/PLC/Methods/AddNodeNetwork.py b/PLC/Methods/AddNodeNetwork.py index 949c573..2dfe7ab 100644 --- a/PLC/Methods/AddNodeNetwork.py +++ b/PLC/Methods/AddNodeNetwork.py @@ -39,8 +39,6 @@ class AddNodeNetwork(Method): returns = Parameter(int, 'New nodenetwork_id (> 0) if successful') - event_type = 'Add' - object_type = 'NodeNetwork' def call(self, auth, node_id_or_hostname, nodenetwork_fields): nodenetwork_fields = dict(filter(can_update, nodenetwork_fields.items())) diff --git a/PLC/Methods/AddNodeToNodeGroup.py b/PLC/Methods/AddNodeToNodeGroup.py index 09bc604..1720dfb 100644 --- a/PLC/Methods/AddNodeToNodeGroup.py +++ b/PLC/Methods/AddNodeToNodeGroup.py @@ -25,8 +25,6 @@ class AddNodeToNodeGroup(Method): returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'NodeGroup' def call(self, auth, node_id_or_hostname, nodegroup_id_or_name): # Get node info diff --git a/PLC/Methods/AddNodeToPCU.py b/PLC/Methods/AddNodeToPCU.py index 1c96e25..4314a67 100644 --- a/PLC/Methods/AddNodeToPCU.py +++ b/PLC/Methods/AddNodeToPCU.py @@ -26,8 +26,6 @@ class AddNodeToPCU(Method): ] returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'PCU' def call(self, auth, node_id_or_hostname, pcu_id, port): # Get node diff --git a/PLC/Methods/AddPCU.py b/PLC/Methods/AddPCU.py index 167f3f2..cc9113d 100644 --- a/PLC/Methods/AddPCU.py +++ b/PLC/Methods/AddPCU.py @@ -34,8 +34,6 @@ class AddPCU(Method): returns = Parameter(int, 'New pcu_id (> 0) if successful') - event_type = 'Add' - object_type = 'PCU' def call(self, auth, site_id_or_login_base, pcu_fields): pcu_fields = dict(filter(can_update, pcu_fields.items())) diff --git a/PLC/Methods/AddPerson.py b/PLC/Methods/AddPerson.py index 583502d..6ad6848 100644 --- a/PLC/Methods/AddPerson.py +++ b/PLC/Methods/AddPerson.py @@ -30,8 +30,6 @@ class AddPerson(Method): returns = Parameter(int, 'New person_id (> 0) if successful') - event_type = 'Add' - object_type = 'Person' def call(self, auth, person_fields): person_fields = dict(filter(can_update, person_fields.items())) diff --git a/PLC/Methods/AddPersonKey.py b/PLC/Methods/AddPersonKey.py index dfadfa5..c404d05 100644 --- a/PLC/Methods/AddPersonKey.py +++ b/PLC/Methods/AddPersonKey.py @@ -29,8 +29,6 @@ class AddPersonKey(Method): returns = Parameter(int, 'New key_id (> 0) if successful') - event_type = 'Add' - object_type = 'Key' def call(self, auth, person_id_or_email, key_fields): key_fields = dict(filter(can_update, key_fields.items())) diff --git a/PLC/Methods/AddPersonToSite.py b/PLC/Methods/AddPersonToSite.py index b908e7d..5ada731 100644 --- a/PLC/Methods/AddPersonToSite.py +++ b/PLC/Methods/AddPersonToSite.py @@ -25,8 +25,6 @@ class AddPersonToSite(Method): ] returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'Site' def call(self, auth, person_id_or_email, site_id_or_login_base): # Get account information diff --git a/PLC/Methods/AddPersonToSlice.py b/PLC/Methods/AddPersonToSlice.py index 865ff9d..bd16e04 100644 --- a/PLC/Methods/AddPersonToSlice.py +++ b/PLC/Methods/AddPersonToSlice.py @@ -24,8 +24,6 @@ class AddPersonToSlice(Method): ] returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'Slice' def call(self, auth, person_id_or_email, slice_id_or_name): # Get account information diff --git a/PLC/Methods/AddRole.py b/PLC/Methods/AddRole.py index c90c4a2..bed028a 100644 --- a/PLC/Methods/AddRole.py +++ b/PLC/Methods/AddRole.py @@ -21,8 +21,6 @@ class AddRole(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'Role' def call(self, auth, role_id, name): role = Role(self.api) diff --git a/PLC/Methods/AddRoleToPerson.py b/PLC/Methods/AddRoleToPerson.py index 279fd71..08f183e 100644 --- a/PLC/Methods/AddRoleToPerson.py +++ b/PLC/Methods/AddRoleToPerson.py @@ -27,8 +27,6 @@ class AddRoleToPerson(Method): returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'Person' def call(self, auth, role_id_or_name, person_id_or_email): # Get all roles diff --git a/PLC/Methods/AddSite.py b/PLC/Methods/AddSite.py index 3148048..9bd1734 100644 --- a/PLC/Methods/AddSite.py +++ b/PLC/Methods/AddSite.py @@ -29,8 +29,6 @@ class AddSite(Method): returns = Parameter(int, 'New site_id (> 0) if successful') - event_type = 'Add' - object_type = 'Site' def call(self, auth, site_fields): site_fields = dict(filter(can_update, site_fields.items())) diff --git a/PLC/Methods/AddSiteAddress.py b/PLC/Methods/AddSiteAddress.py index eb813c0..e7984a2 100644 --- a/PLC/Methods/AddSiteAddress.py +++ b/PLC/Methods/AddSiteAddress.py @@ -32,8 +32,6 @@ class AddSiteAddress(Method): returns = Parameter(int, 'New address_id (> 0) if successful') - event_type = 'Add' - object_type = 'Address' def call(self, auth, site_id_or_login_base, address_fields): address_fields = dict(filter(can_update, address_fields.items())) diff --git a/PLC/Methods/AddSlice.py b/PLC/Methods/AddSlice.py index 82627ce..9cce2b0 100644 --- a/PLC/Methods/AddSlice.py +++ b/PLC/Methods/AddSlice.py @@ -38,8 +38,6 @@ class AddSlice(Method): returns = Parameter(int, 'New slice_id (> 0) if successful') - event_type = 'Add' - object_type = 'Slice' def call(self, auth, slice_fields): slice_fields = dict(filter(can_update, slice_fields.items())) diff --git a/PLC/Methods/AddSliceAttribute.py b/PLC/Methods/AddSliceAttribute.py index d930492..326370a 100644 --- a/PLC/Methods/AddSliceAttribute.py +++ b/PLC/Methods/AddSliceAttribute.py @@ -37,8 +37,6 @@ class AddSliceAttribute(Method): returns = Parameter(int, 'New slice_attribute_id (> 0) if successful') - event_type = 'Add' - object_type = 'SliceAttribute' def call(self, auth, slice_id_or_name, attribute_type_id_or_name, value, node_id_or_hostname = None): slices = Slices(self.api, [slice_id_or_name]) diff --git a/PLC/Methods/AddSliceAttributeType.py b/PLC/Methods/AddSliceAttributeType.py index e481b7b..aec8930 100644 --- a/PLC/Methods/AddSliceAttributeType.py +++ b/PLC/Methods/AddSliceAttributeType.py @@ -27,8 +27,6 @@ class AddSliceAttributeType(Method): returns = Parameter(int, 'New attribute_id (> 0) if successful') - event_type = 'Add' - object_type = 'SliceAttributeType' def call(self, auth, attribute_type_fields): attribute_type_fields = dict(filter(can_update, attribute_type_fields.items())) diff --git a/PLC/Methods/AddSliceInstantiation.py b/PLC/Methods/AddSliceInstantiation.py index 545424e..0374957 100644 --- a/PLC/Methods/AddSliceInstantiation.py +++ b/PLC/Methods/AddSliceInstantiation.py @@ -20,8 +20,6 @@ class AddSliceInstantiation(Method): returns = Parameter(int, '1 if successful') - event_type = 'Add' - object_type = 'SliceInstantiation' def call(self, auth, name): slice_instantiation = SliceInstantiation(self.api) diff --git a/PLC/Methods/AddSliceToNodes.py b/PLC/Methods/AddSliceToNodes.py index 1b2942c..e1950f5 100644 --- a/PLC/Methods/AddSliceToNodes.py +++ b/PLC/Methods/AddSliceToNodes.py @@ -28,8 +28,6 @@ class AddSliceToNodes(Method): returns = Parameter(int, '1 if successful') - event_type = 'AddTo' - object_type = 'Node' def call(self, auth, slice_id_or_name, node_id_or_hostname_list): # Get slice information diff --git a/PLC/Methods/DeleteAddress.py b/PLC/Methods/DeleteAddress.py index 24ec758..f50e15b 100644 --- a/PLC/Methods/DeleteAddress.py +++ b/PLC/Methods/DeleteAddress.py @@ -22,8 +22,6 @@ class DeleteAddress(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Address' def call(self, auth, address_id): # Get associated address details diff --git a/PLC/Methods/DeleteAddressType.py b/PLC/Methods/DeleteAddressType.py index e3ed947..9dbe652 100644 --- a/PLC/Methods/DeleteAddressType.py +++ b/PLC/Methods/DeleteAddressType.py @@ -21,8 +21,6 @@ class DeleteAddressType(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'AddressType' def call(self, auth, address_type_id_or_name): address_types = AddressTypes(self.api, [address_type_id_or_name]) diff --git a/PLC/Methods/DeleteAddressTypeFromAddress.py b/PLC/Methods/DeleteAddressTypeFromAddress.py index 9cd279c..dfc473a 100644 --- a/PLC/Methods/DeleteAddressTypeFromAddress.py +++ b/PLC/Methods/DeleteAddressTypeFromAddress.py @@ -25,8 +25,6 @@ class DeleteAddressTypeFromAddress(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'Address' def call(self, auth, address_type_id_or_name, address_id): address_types = AddressTypes(self.api, [address_type_id_or_name]) diff --git a/PLC/Methods/DeleteBootState.py b/PLC/Methods/DeleteBootState.py index 4773d60..507fc7b 100644 --- a/PLC/Methods/DeleteBootState.py +++ b/PLC/Methods/DeleteBootState.py @@ -23,8 +23,6 @@ class DeleteBootState(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'BootState' def call(self, auth, name): boot_states = BootStates(self.api, [name]) diff --git a/PLC/Methods/DeleteConfFile.py b/PLC/Methods/DeleteConfFile.py index a07964a..165b231 100644 --- a/PLC/Methods/DeleteConfFile.py +++ b/PLC/Methods/DeleteConfFile.py @@ -20,8 +20,6 @@ class DeleteConfFile(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'ConfFile' def call(self, auth, conf_file_id): conf_files = ConfFiles(self.api, [conf_file_id]) diff --git a/PLC/Methods/DeleteConfFileFromNode.py b/PLC/Methods/DeleteConfFileFromNode.py index 43c3e90..c8eba25 100644 --- a/PLC/Methods/DeleteConfFileFromNode.py +++ b/PLC/Methods/DeleteConfFileFromNode.py @@ -24,8 +24,6 @@ class DeleteConfFileFromNode(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'ConfFile' def call(self, auth, conf_file_id, node_id_or_hostname): # Get configuration file diff --git a/PLC/Methods/DeleteConfFileFromNodeGroup.py b/PLC/Methods/DeleteConfFileFromNodeGroup.py index 2c29309..1b4e890 100644 --- a/PLC/Methods/DeleteConfFileFromNodeGroup.py +++ b/PLC/Methods/DeleteConfFileFromNodeGroup.py @@ -24,8 +24,6 @@ class DeleteConfFileFromNodeGroup(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'ConfFile' def call(self, auth, conf_file_id, nodegroup_id_or_name): # Get configuration file diff --git a/PLC/Methods/DeleteKey.py b/PLC/Methods/DeleteKey.py index c137f7c..bdd3397 100644 --- a/PLC/Methods/DeleteKey.py +++ b/PLC/Methods/DeleteKey.py @@ -22,8 +22,6 @@ class DeleteKey(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Key' def call(self, auth, key_id): # Get associated key details diff --git a/PLC/Methods/DeleteKeyType.py b/PLC/Methods/DeleteKeyType.py index 2554cb0..e09e5c5 100644 --- a/PLC/Methods/DeleteKeyType.py +++ b/PLC/Methods/DeleteKeyType.py @@ -22,8 +22,6 @@ class DeleteKeyType(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'KeyType' def call(self, auth, name): key_types = KeyTypes(self.api, [name]) diff --git a/PLC/Methods/DeleteMessage.py b/PLC/Methods/DeleteMessage.py index fc7e2d0..7a6713d 100644 --- a/PLC/Methods/DeleteMessage.py +++ b/PLC/Methods/DeleteMessage.py @@ -20,8 +20,6 @@ class DeleteMessage(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Message' def call(self, auth, message_id): # Get message information diff --git a/PLC/Methods/DeleteNetworkMethod.py b/PLC/Methods/DeleteNetworkMethod.py index c31c181..d0f982e 100644 --- a/PLC/Methods/DeleteNetworkMethod.py +++ b/PLC/Methods/DeleteNetworkMethod.py @@ -23,8 +23,6 @@ class DeleteNetworkMethod(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'NetworkMethod' def call(self, auth, name): network_methods = NetworkMethods(self.api, [name]) diff --git a/PLC/Methods/DeleteNetworkType.py b/PLC/Methods/DeleteNetworkType.py index 2fa3c9a..a02f6e0 100644 --- a/PLC/Methods/DeleteNetworkType.py +++ b/PLC/Methods/DeleteNetworkType.py @@ -23,8 +23,6 @@ class DeleteNetworkType(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'NetworkType' def call(self, auth, name): network_types = NetworkTypes(self.api, [name]) diff --git a/PLC/Methods/DeleteNode.py b/PLC/Methods/DeleteNode.py index c6023c5..64f149a 100644 --- a/PLC/Methods/DeleteNode.py +++ b/PLC/Methods/DeleteNode.py @@ -24,8 +24,6 @@ class DeleteNode(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Node' def call(self, auth, node_id_or_hostname): # Get account information diff --git a/PLC/Methods/DeleteNodeFromNodeGroup.py b/PLC/Methods/DeleteNodeFromNodeGroup.py index dc289fa..1f5572b 100644 --- a/PLC/Methods/DeleteNodeFromNodeGroup.py +++ b/PLC/Methods/DeleteNodeFromNodeGroup.py @@ -24,8 +24,6 @@ class DeleteNodeFromNodeGroup(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'NodeGroup' def call(self, auth, node_id_or_hostname, nodegroup_id_or_name): # Get node info diff --git a/PLC/Methods/DeleteNodeFromPCU.py b/PLC/Methods/DeleteNodeFromPCU.py index 02ddfcc..b51b3db 100644 --- a/PLC/Methods/DeleteNodeFromPCU.py +++ b/PLC/Methods/DeleteNodeFromPCU.py @@ -25,8 +25,6 @@ class DeleteNodeFromPCU(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'PCU' def call(self, auth, node_id_or_hostname, pcu_id): # Get node diff --git a/PLC/Methods/DeleteNodeGroup.py b/PLC/Methods/DeleteNodeGroup.py index c038401..bed1dfb 100644 --- a/PLC/Methods/DeleteNodeGroup.py +++ b/PLC/Methods/DeleteNodeGroup.py @@ -23,8 +23,6 @@ class DeleteNodeGroup(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'NodeGroup' def call(self, auth, node_group_id_or_name): # Get account information diff --git a/PLC/Methods/DeleteNodeNetwork.py b/PLC/Methods/DeleteNodeNetwork.py index f59b35f..82d8ceb 100644 --- a/PLC/Methods/DeleteNodeNetwork.py +++ b/PLC/Methods/DeleteNodeNetwork.py @@ -24,8 +24,6 @@ class DeleteNodeNetwork(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'NodeNetwork' def call(self, auth, nodenetwork_id): diff --git a/PLC/Methods/DeletePCU.py b/PLC/Methods/DeletePCU.py index 50adb88..6cee18f 100644 --- a/PLC/Methods/DeletePCU.py +++ b/PLC/Methods/DeletePCU.py @@ -22,8 +22,6 @@ class DeletePCU(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'PCU' def call(self, auth, pcu_id): # Get associated PCU details diff --git a/PLC/Methods/DeletePerson.py b/PLC/Methods/DeletePerson.py index 7046e81..38534c7 100644 --- a/PLC/Methods/DeletePerson.py +++ b/PLC/Methods/DeletePerson.py @@ -25,8 +25,6 @@ class DeletePerson(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Person' def call(self, auth, person_id_or_email): # Get account information diff --git a/PLC/Methods/DeletePersonFromSite.py b/PLC/Methods/DeletePersonFromSite.py index f7bd630..c17384d 100644 --- a/PLC/Methods/DeletePersonFromSite.py +++ b/PLC/Methods/DeletePersonFromSite.py @@ -26,8 +26,6 @@ class DeletePersonFromSite(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'Site' def call(self, auth, person_id_or_email, site_id_or_login_base): # Get account information diff --git a/PLC/Methods/DeletePersonFromSlice.py b/PLC/Methods/DeletePersonFromSlice.py index 4ccf40a..bca374c 100644 --- a/PLC/Methods/DeletePersonFromSlice.py +++ b/PLC/Methods/DeletePersonFromSlice.py @@ -25,8 +25,6 @@ class DeletePersonFromSlice(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'Slice' def call(self, auth, person_id_or_email, slice_id_or_name): # Get account information diff --git a/PLC/Methods/DeleteRole.py b/PLC/Methods/DeleteRole.py index c557851..e254a13 100644 --- a/PLC/Methods/DeleteRole.py +++ b/PLC/Methods/DeleteRole.py @@ -25,8 +25,6 @@ class DeleteRole(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Role' def call(self, auth, role_id_or_name): roles = Roles(self.api, [role_id_or_name]) diff --git a/PLC/Methods/DeleteRoleFromPerson.py b/PLC/Methods/DeleteRoleFromPerson.py index 2f0d579..1119ad4 100644 --- a/PLC/Methods/DeleteRoleFromPerson.py +++ b/PLC/Methods/DeleteRoleFromPerson.py @@ -27,8 +27,6 @@ class DeleteRoleFromPerson(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'Person' def call(self, auth, role_id_or_name, person_id_or_email): # Get all roles diff --git a/PLC/Methods/DeleteSession.py b/PLC/Methods/DeleteSession.py index 1b8bbb7..3898f51 100644 --- a/PLC/Methods/DeleteSession.py +++ b/PLC/Methods/DeleteSession.py @@ -16,8 +16,6 @@ class DeleteSession(Method): accepts = [SessionAuth()] returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Session' def call(self, auth): assert auth.has_key('session') diff --git a/PLC/Methods/DeleteSite.py b/PLC/Methods/DeleteSite.py index e84466e..743e228 100644 --- a/PLC/Methods/DeleteSite.py +++ b/PLC/Methods/DeleteSite.py @@ -27,8 +27,6 @@ class DeleteSite(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Site' def call(self, auth, site_id_or_login_base): # Get account information diff --git a/PLC/Methods/DeleteSlice.py b/PLC/Methods/DeleteSlice.py index 5c171e1..888f6e0 100644 --- a/PLC/Methods/DeleteSlice.py +++ b/PLC/Methods/DeleteSlice.py @@ -25,8 +25,6 @@ class DeleteSlice(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'Slice' def call(self, auth, slice_id_or_name): slices = Slices(self.api, [slice_id_or_name]) diff --git a/PLC/Methods/DeleteSliceAttribute.py b/PLC/Methods/DeleteSliceAttribute.py index c84c622..989b112 100644 --- a/PLC/Methods/DeleteSliceAttribute.py +++ b/PLC/Methods/DeleteSliceAttribute.py @@ -28,8 +28,6 @@ class DeleteSliceAttribute(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'SliceAttribute' def call(self, auth, slice_attribute_id): slice_attributes = SliceAttributes(self.api, [slice_attribute_id]) diff --git a/PLC/Methods/DeleteSliceAttributeType.py b/PLC/Methods/DeleteSliceAttributeType.py index 37a7065..922b6ac 100644 --- a/PLC/Methods/DeleteSliceAttributeType.py +++ b/PLC/Methods/DeleteSliceAttributeType.py @@ -21,8 +21,6 @@ class DeleteSliceAttributeType(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'SliceAttributeType' def call(self, auth, attribute_type_id_or_name): attribute_types = SliceAttributeTypes(self.api, [attribute_type_id_or_name]) diff --git a/PLC/Methods/DeleteSliceFromNodes.py b/PLC/Methods/DeleteSliceFromNodes.py index ce46929..2945d31 100644 --- a/PLC/Methods/DeleteSliceFromNodes.py +++ b/PLC/Methods/DeleteSliceFromNodes.py @@ -25,8 +25,6 @@ class DeleteSliceFromNodes(Method): returns = Parameter(int, '1 if successful') - event_type = 'DeleteFrom' - object_type = 'Node' def call(self, auth, slice_id_or_name, node_id_or_hostname_list): # Get slice information diff --git a/PLC/Methods/DeleteSliceInstantiation.py b/PLC/Methods/DeleteSliceInstantiation.py index d6b4091..5098a9d 100644 --- a/PLC/Methods/DeleteSliceInstantiation.py +++ b/PLC/Methods/DeleteSliceInstantiation.py @@ -22,8 +22,6 @@ class DeleteSliceInstantiation(Method): returns = Parameter(int, '1 if successful') - event_type = 'Delete' - object_type = 'SliceInstantiation' def call(self, auth, instantiation): slice_instantiations = SliceInstantiations(self.api, [instantiation]) diff --git a/PLC/Methods/GetAddressTypes.py b/PLC/Methods/GetAddressTypes.py index 1f3eb32..ed8ad3b 100644 --- a/PLC/Methods/GetAddressTypes.py +++ b/PLC/Methods/GetAddressTypes.py @@ -27,8 +27,6 @@ class GetAddressTypes(Method): returns = [AddressType.fields] - event_type = 'Get' - object_type = 'AddressType' def call(self, auth, address_type_filter = None, return_fields = None): return AddressTypes(self.api, address_type_filter, return_fields) diff --git a/PLC/Methods/GetAddresses.py b/PLC/Methods/GetAddresses.py index bff3b73..24d5aa2 100644 --- a/PLC/Methods/GetAddresses.py +++ b/PLC/Methods/GetAddresses.py @@ -25,8 +25,6 @@ class GetAddresses(Method): returns = [Address.fields] - event_type = 'Get' - object_type = 'Address' def call(self, auth, address_filter = None, return_fields = None): return Addresses(self.api, address_filter, return_fields) diff --git a/PLC/Methods/GetBootStates.py b/PLC/Methods/GetBootStates.py index 1c9afc3..85540ff 100644 --- a/PLC/Methods/GetBootStates.py +++ b/PLC/Methods/GetBootStates.py @@ -17,8 +17,6 @@ class GetBootStates(Method): returns = [BootState.fields['boot_state']] - event_type = 'Get' - object_type = 'BootState' def call(self, auth): return [boot_state['boot_state'] for boot_state in BootStates(self.api)] diff --git a/PLC/Methods/GetConfFiles.py b/PLC/Methods/GetConfFiles.py index 582f611..c2204aa 100644 --- a/PLC/Methods/GetConfFiles.py +++ b/PLC/Methods/GetConfFiles.py @@ -26,8 +26,6 @@ class GetConfFiles(Method): returns = [ConfFile.fields] - event_type = 'Get' - object_type = 'ConfFile' def call(self, auth, conf_file_filter = None, return_fields = None): return ConfFiles(self.api, conf_file_filter, return_fields) diff --git a/PLC/Methods/GetEvents.py b/PLC/Methods/GetEvents.py index 0ee58df..2bc989c 100644 --- a/PLC/Methods/GetEvents.py +++ b/PLC/Methods/GetEvents.py @@ -24,8 +24,6 @@ class GetEvents(Method): ] returns = [Event.fields] - event_type = 'Get' - object_type = 'Event' def call(self, auth, event_filter = None, return_fields = None): return Events(self.api, event_filter, return_fields) diff --git a/PLC/Methods/GetKeyTypes.py b/PLC/Methods/GetKeyTypes.py index 4c742ee..dd685de 100644 --- a/PLC/Methods/GetKeyTypes.py +++ b/PLC/Methods/GetKeyTypes.py @@ -17,8 +17,6 @@ class GetKeyTypes(Method): returns = [KeyType.fields['key_type']] - event_type = 'Get' - object_type = 'KeyType' def call(self, auth): return [key_type['key_type'] for key_type in KeyTypes(self.api)] diff --git a/PLC/Methods/GetKeys.py b/PLC/Methods/GetKeys.py index b9cf110..73ad9b6 100644 --- a/PLC/Methods/GetKeys.py +++ b/PLC/Methods/GetKeys.py @@ -28,8 +28,6 @@ class GetKeys(Method): returns = [Key.fields] - event_type = 'Get' - object_type = 'Key' def call(self, auth, key_filter = None, return_fields = None): keys = Keys(self.api, key_filter, return_fields) diff --git a/PLC/Methods/GetMessages.py b/PLC/Methods/GetMessages.py index 3d0473d..8d45af6 100644 --- a/PLC/Methods/GetMessages.py +++ b/PLC/Methods/GetMessages.py @@ -20,8 +20,6 @@ class GetMessages(Method): returns = [Message.fields] - event_type = 'Get' - object_type = 'Message' def call(self, auth, message_ids = None): return Messages(self.api, message_ids) diff --git a/PLC/Methods/GetNetworkMethods.py b/PLC/Methods/GetNetworkMethods.py index b29ad37..88fe048 100644 --- a/PLC/Methods/GetNetworkMethods.py +++ b/PLC/Methods/GetNetworkMethods.py @@ -17,8 +17,6 @@ class GetNetworkMethods(Method): returns = [NetworkMethod.fields['method']] - event_type = 'Get' - object_type = 'NetworkMethod' def call(self, auth): return [network_method['method'] for network_method in NetworkMethods(self.api)] diff --git a/PLC/Methods/GetNetworkTypes.py b/PLC/Methods/GetNetworkTypes.py index d819761..eab232b 100644 --- a/PLC/Methods/GetNetworkTypes.py +++ b/PLC/Methods/GetNetworkTypes.py @@ -17,8 +17,6 @@ class GetNetworkTypes(Method): returns = [NetworkType.fields['type']] - event_type = 'Get' - object_type = 'NetworkType' def call(self, auth): return [network_type['type'] for network_type in NetworkTypes(self.api)] diff --git a/PLC/Methods/GetNodeGroups.py b/PLC/Methods/GetNodeGroups.py index 38d0618..478eb99 100644 --- a/PLC/Methods/GetNodeGroups.py +++ b/PLC/Methods/GetNodeGroups.py @@ -25,8 +25,6 @@ class GetNodeGroups(Method): ] returns = [NodeGroup.fields] - event_type = 'Get' - object_type = 'NodeGroup' def call(self, auth, nodegroup_filter = None, return_fields = None): return NodeGroups(self.api, nodegroup_filter, return_fields) diff --git a/PLC/Methods/GetNodeNetworks.py b/PLC/Methods/GetNodeNetworks.py index db348a5..1168e49 100644 --- a/PLC/Methods/GetNodeNetworks.py +++ b/PLC/Methods/GetNodeNetworks.py @@ -26,8 +26,6 @@ class GetNodeNetworks(Method): returns = [NodeNetwork.fields] - event_type = 'Get' - object_type = 'NodeNetwork' def call(self, auth, nodenetwork_filter = None, return_fields = None): return NodeNetworks(self.api, nodenetwork_filter, return_fields) diff --git a/PLC/Methods/GetNodes.py b/PLC/Methods/GetNodes.py index 92f0111..8ab44f0 100644 --- a/PLC/Methods/GetNodes.py +++ b/PLC/Methods/GetNodes.py @@ -28,8 +28,6 @@ class GetNodes(Method): returns = [Node.fields] - event_type = 'Get' - object_type = 'Node' def call(self, auth, node_filter = None, return_fields = None): # Get node information diff --git a/PLC/Methods/GetPCUs.py b/PLC/Methods/GetPCUs.py index 1f8e201..13bd7dc 100644 --- a/PLC/Methods/GetPCUs.py +++ b/PLC/Methods/GetPCUs.py @@ -27,8 +27,6 @@ class GetPCUs(Method): ] returns = [PCU.fields] - event_type = 'Get' - object_type = 'PCU' def call(self, auth, pcu_filter = None, return_fields = None): # If we are not admin, make sure to only return our own PCUs diff --git a/PLC/Methods/GetPeerData.py b/PLC/Methods/GetPeerData.py index 4b0f068..4b7d433 100644 --- a/PLC/Methods/GetPeerData.py +++ b/PLC/Methods/GetPeerData.py @@ -34,8 +34,6 @@ class GetPeerData (Method): ] # for RefreshPeer returns = Parameter (dict,"Sites, Keys, Nodes, Persons, Slices") - event_type = 'Get' - object_type = 'Peer' def call (self, auth, peer_id): # xxx a peer cannot yet compute it's peer_id under another plc diff --git a/PLC/Methods/GetPeers.py b/PLC/Methods/GetPeers.py index 3002e82..b7509b0 100644 --- a/PLC/Methods/GetPeers.py +++ b/PLC/Methods/GetPeers.py @@ -30,8 +30,6 @@ class GetPeers (Method): ] returns = [Peer.fields] - event_type = 'Get' - object_type = 'Peer' def call (self, auth, peer_filter = None, return_fields = None): return Peers(self.api, peer_filter, return_fields) diff --git a/PLC/Methods/GetPersons.py b/PLC/Methods/GetPersons.py index 56c7cd9..4de3347 100644 --- a/PLC/Methods/GetPersons.py +++ b/PLC/Methods/GetPersons.py @@ -33,8 +33,6 @@ class GetPersons(Method): return_fields = dict(filter(can_return, Person.fields.items())) returns = [return_fields] - event_type = 'Get' - object_type = 'Person' def call(self, auth, person_filter = None, return_fields = None): diff --git a/PLC/Methods/GetRoles.py b/PLC/Methods/GetRoles.py index ba15ee1..7d7c264 100644 --- a/PLC/Methods/GetRoles.py +++ b/PLC/Methods/GetRoles.py @@ -17,8 +17,6 @@ class GetRoles(Method): returns = [Role.fields] - event_type = 'Get' - object_type = 'Role' def call(self, auth): return Roles(self.api) diff --git a/PLC/Methods/GetSession.py b/PLC/Methods/GetSession.py index 584de64..ae75219 100644 --- a/PLC/Methods/GetSession.py +++ b/PLC/Methods/GetSession.py @@ -17,8 +17,6 @@ class GetSession(Method): accepts = [Auth()] returns = Session.fields['session_id'] - event_type = 'Get' - object_type = 'Session' def call(self, auth): # Authenticated with a session key, just return it diff --git a/PLC/Methods/GetSites.py b/PLC/Methods/GetSites.py index 0f51b02..d148b5d 100644 --- a/PLC/Methods/GetSites.py +++ b/PLC/Methods/GetSites.py @@ -25,8 +25,6 @@ class GetSites(Method): returns = [Site.fields] - event_type = 'Get' - object_type = 'Site' def call(self, auth, site_filter = None, return_fields = None): return Sites(self.api, site_filter, return_fields) diff --git a/PLC/Methods/GetSliceAttributeTypes.py b/PLC/Methods/GetSliceAttributeTypes.py index 889346f..2d53368 100644 --- a/PLC/Methods/GetSliceAttributeTypes.py +++ b/PLC/Methods/GetSliceAttributeTypes.py @@ -26,8 +26,6 @@ class GetSliceAttributeTypes(Method): returns = [SliceAttributeType.fields] - event_type = 'Get' - object_type = 'SliceAttributeType' def call(self, auth, attribute_type_filter = None, return_fields = None): return SliceAttributeTypes(self.api, attribute_type_filter, return_fields) diff --git a/PLC/Methods/GetSliceAttributes.py b/PLC/Methods/GetSliceAttributes.py index 4107aed..d763661 100644 --- a/PLC/Methods/GetSliceAttributes.py +++ b/PLC/Methods/GetSliceAttributes.py @@ -34,8 +34,6 @@ class GetSliceAttributes(Method): returns = [SliceAttribute.fields] - event_type = 'Get' - object_type = 'SliceAttribute' def call(self, auth, slice_attribute_filter = None, return_fields = None): # If we are not admin, make sure to only return our own slice diff --git a/PLC/Methods/GetSliceInstantiations.py b/PLC/Methods/GetSliceInstantiations.py index fc6469d..1cfcee9 100644 --- a/PLC/Methods/GetSliceInstantiations.py +++ b/PLC/Methods/GetSliceInstantiations.py @@ -17,8 +17,6 @@ class GetSliceInstantiations(Method): returns = [SliceInstantiation.fields['instantiation']] - event_type = 'Get' - object_type = 'SliceInstantiation' def call(self, auth): return [slice_instantiation['instantiation'] for slice_instantiation in SliceInstantiations(self.api)] diff --git a/PLC/Methods/GetSlices.py b/PLC/Methods/GetSlices.py index 6cfacac..2b85623 100644 --- a/PLC/Methods/GetSlices.py +++ b/PLC/Methods/GetSlices.py @@ -30,8 +30,6 @@ class GetSlices(Method): returns = [Slice.fields] - event_type = 'Get' - object_type = 'Slice' def call(self, auth, slice_filter = None, return_fields = None): # If we are not admin, make sure to return only viewable diff --git a/PLC/Methods/GetSlivers.py b/PLC/Methods/GetSlivers.py index ce8ea68..bde2e44 100644 --- a/PLC/Methods/GetSlivers.py +++ b/PLC/Methods/GetSlivers.py @@ -61,8 +61,6 @@ class GetSlivers(Method): }] }] - event_type = 'Get' - object_type = 'Sliver' def call(self, auth, node_filter = None): timestamp = int(time.time()) -- 2.43.0