- - removed anything having to do with event_type/event_object
authorTony Mack <tmack@cs.princeton.edu>
Wed, 29 Nov 2006 18:30:10 +0000 (18:30 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 29 Nov 2006 18:30:10 +0000 (18:30 +0000)
84 files changed:
PLC/Methods/AddAddressType.py
PLC/Methods/AddAddressTypeToAddress.py
PLC/Methods/AddBootState.py
PLC/Methods/AddConfFile.py
PLC/Methods/AddConfFileToNode.py
PLC/Methods/AddConfFileToNodeGroup.py
PLC/Methods/AddKeyType.py
PLC/Methods/AddMessage.py
PLC/Methods/AddNetworkMethod.py
PLC/Methods/AddNetworkType.py
PLC/Methods/AddNode.py
PLC/Methods/AddNodeGroup.py
PLC/Methods/AddNodeNetwork.py
PLC/Methods/AddNodeToNodeGroup.py
PLC/Methods/AddNodeToPCU.py
PLC/Methods/AddPCU.py
PLC/Methods/AddPerson.py
PLC/Methods/AddPersonKey.py
PLC/Methods/AddPersonToSite.py
PLC/Methods/AddPersonToSlice.py
PLC/Methods/AddRole.py
PLC/Methods/AddRoleToPerson.py
PLC/Methods/AddSite.py
PLC/Methods/AddSiteAddress.py
PLC/Methods/AddSlice.py
PLC/Methods/AddSliceAttribute.py
PLC/Methods/AddSliceAttributeType.py
PLC/Methods/AddSliceInstantiation.py
PLC/Methods/AddSliceToNodes.py
PLC/Methods/DeleteAddress.py
PLC/Methods/DeleteAddressType.py
PLC/Methods/DeleteAddressTypeFromAddress.py
PLC/Methods/DeleteBootState.py
PLC/Methods/DeleteConfFile.py
PLC/Methods/DeleteConfFileFromNode.py
PLC/Methods/DeleteConfFileFromNodeGroup.py
PLC/Methods/DeleteKey.py
PLC/Methods/DeleteKeyType.py
PLC/Methods/DeleteMessage.py
PLC/Methods/DeleteNetworkMethod.py
PLC/Methods/DeleteNetworkType.py
PLC/Methods/DeleteNode.py
PLC/Methods/DeleteNodeFromNodeGroup.py
PLC/Methods/DeleteNodeFromPCU.py
PLC/Methods/DeleteNodeGroup.py
PLC/Methods/DeleteNodeNetwork.py
PLC/Methods/DeletePCU.py
PLC/Methods/DeletePerson.py
PLC/Methods/DeletePersonFromSite.py
PLC/Methods/DeletePersonFromSlice.py
PLC/Methods/DeleteRole.py
PLC/Methods/DeleteRoleFromPerson.py
PLC/Methods/DeleteSession.py
PLC/Methods/DeleteSite.py
PLC/Methods/DeleteSlice.py
PLC/Methods/DeleteSliceAttribute.py
PLC/Methods/DeleteSliceAttributeType.py
PLC/Methods/DeleteSliceFromNodes.py
PLC/Methods/DeleteSliceInstantiation.py
PLC/Methods/GetAddressTypes.py
PLC/Methods/GetAddresses.py
PLC/Methods/GetBootStates.py
PLC/Methods/GetConfFiles.py
PLC/Methods/GetEvents.py
PLC/Methods/GetKeyTypes.py
PLC/Methods/GetKeys.py
PLC/Methods/GetMessages.py
PLC/Methods/GetNetworkMethods.py
PLC/Methods/GetNetworkTypes.py
PLC/Methods/GetNodeGroups.py
PLC/Methods/GetNodeNetworks.py
PLC/Methods/GetNodes.py
PLC/Methods/GetPCUs.py
PLC/Methods/GetPeerData.py
PLC/Methods/GetPeers.py
PLC/Methods/GetPersons.py
PLC/Methods/GetRoles.py
PLC/Methods/GetSession.py
PLC/Methods/GetSites.py
PLC/Methods/GetSliceAttributeTypes.py
PLC/Methods/GetSliceAttributes.py
PLC/Methods/GetSliceInstantiations.py
PLC/Methods/GetSlices.py
PLC/Methods/GetSlivers.py

index 7c5d59c..0dcc66d 100644 (file)
@@ -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()))
index 5f4d1c1..b4cf700 100644 (file)
@@ -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])
index 9572332..fc75254 100644 (file)
@@ -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)
index 1e04d8d..5cc0828 100644 (file)
@@ -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()))
index 47886a8..7bcdcc0 100644 (file)
@@ -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
index c81f85f..9212f70 100644 (file)
@@ -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
index 83ec584..b3690a8 100644 (file)
@@ -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)
index 7de64cb..62a2da7 100644 (file)
@@ -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)
index 16e33b5..11f3845 100644 (file)
@@ -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)
index f22c87b..6533053 100644 (file)
@@ -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)
index 2fc9837..17f0bff 100644 (file)
@@ -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()))
index 864fe8e..23462f7 100644 (file)
@@ -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()))
index 949c573..2dfe7ab 100644 (file)
@@ -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()))
index 09bc604..1720dfb 100644 (file)
@@ -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
index 1c96e25..4314a67 100644 (file)
@@ -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
index 167f3f2..cc9113d 100644 (file)
@@ -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()))
index 583502d..6ad6848 100644 (file)
@@ -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()))
index dfadfa5..c404d05 100644 (file)
@@ -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()))
index b908e7d..5ada731 100644 (file)
@@ -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
index 865ff9d..bd16e04 100644 (file)
@@ -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
index c90c4a2..bed028a 100644 (file)
@@ -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)
index 279fd71..08f183e 100644 (file)
@@ -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
index 3148048..9bd1734 100644 (file)
@@ -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()))
index eb813c0..e7984a2 100644 (file)
@@ -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()))
index 82627ce..9cce2b0 100644 (file)
@@ -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()))
index d930492..326370a 100644 (file)
@@ -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])
index e481b7b..aec8930 100644 (file)
@@ -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()))
index 545424e..0374957 100644 (file)
@@ -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)
index 1b2942c..e1950f5 100644 (file)
@@ -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
index 24ec758..f50e15b 100644 (file)
@@ -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
index e3ed947..9dbe652 100644 (file)
@@ -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])
index 9cd279c..dfc473a 100644 (file)
@@ -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])
index 4773d60..507fc7b 100644 (file)
@@ -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])
index a07964a..165b231 100644 (file)
@@ -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])
index 43c3e90..c8eba25 100644 (file)
@@ -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
index 2c29309..1b4e890 100644 (file)
@@ -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
index c137f7c..bdd3397 100644 (file)
@@ -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
index 2554cb0..e09e5c5 100644 (file)
@@ -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])
index fc7e2d0..7a6713d 100644 (file)
@@ -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
index c31c181..d0f982e 100644 (file)
@@ -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])
index 2fa3c9a..a02f6e0 100644 (file)
@@ -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])
index c6023c5..64f149a 100644 (file)
@@ -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
index dc289fa..1f5572b 100644 (file)
@@ -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
index 02ddfcc..b51b3db 100644 (file)
@@ -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
index c038401..bed1dfb 100644 (file)
@@ -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
index f59b35f..82d8ceb 100644 (file)
@@ -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):
 
index 50adb88..6cee18f 100644 (file)
@@ -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
index 7046e81..38534c7 100644 (file)
@@ -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
index f7bd630..c17384d 100644 (file)
@@ -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
index 4ccf40a..bca374c 100644 (file)
@@ -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
index c557851..e254a13 100644 (file)
@@ -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])
index 2f0d579..1119ad4 100644 (file)
@@ -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
index 1b8bbb7..3898f51 100644 (file)
@@ -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')
index e84466e..743e228 100644 (file)
@@ -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
index 5c171e1..888f6e0 100644 (file)
@@ -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])
index c84c622..989b112 100644 (file)
@@ -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])
index 37a7065..922b6ac 100644 (file)
@@ -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])
index ce46929..2945d31 100644 (file)
@@ -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
index d6b4091..5098a9d 100644 (file)
@@ -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])
index 1f3eb32..ed8ad3b 100644 (file)
@@ -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)
index bff3b73..24d5aa2 100644 (file)
@@ -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)
index 1c9afc3..85540ff 100644 (file)
@@ -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)]
index 582f611..c2204aa 100644 (file)
@@ -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)
index 0ee58df..2bc989c 100644 (file)
@@ -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)
index 4c742ee..dd685de 100644 (file)
@@ -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)]
index b9cf110..73ad9b6 100644 (file)
@@ -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)
index 3d0473d..8d45af6 100644 (file)
@@ -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)
index b29ad37..88fe048 100644 (file)
@@ -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)]
index d819761..eab232b 100644 (file)
@@ -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)]
index 38d0618..478eb99 100644 (file)
@@ -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)
index db348a5..1168e49 100644 (file)
@@ -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)
index 92f0111..8ab44f0 100644 (file)
@@ -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
index 1f8e201..13bd7dc 100644 (file)
@@ -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
index 4b0f068..4b7d433 100644 (file)
@@ -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
index 3002e82..b7509b0 100644 (file)
@@ -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)
index 56c7cd9..4de3347 100644 (file)
@@ -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):
 
index ba15ee1..7d7c264 100644 (file)
@@ -17,8 +17,6 @@ class GetRoles(Method):
 
     returns = [Role.fields]
     
-    event_type = 'Get'
-    object_type = 'Role'
 
     def call(self, auth):
        return Roles(self.api)
index 584de64..ae75219 100644 (file)
@@ -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
index 0f51b02..d148b5d 100644 (file)
@@ -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)
index 889346f..2d53368 100644 (file)
@@ -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)
index 4107aed..d763661 100644 (file)
@@ -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
index fc6469d..1cfcee9 100644 (file)
@@ -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)]
index 6cfacac..2b85623 100644 (file)
@@ -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
index ce8ea68..bde2e44 100644 (file)
@@ -61,8 +61,6 @@ class GetSlivers(Method):
         }]
     }]
 
-    event_type = 'Get'
-    object_type = 'Sliver'
 
     def call(self, auth, node_filter = None):
         timestamp = int(time.time())