svn keywords
[plcapi.git] / PLC / Methods / DeleteConfFileFromNode.py
index 80985dd..838755f 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -24,10 +26,6 @@ class DeleteConfFileFromNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    event_type = 'DeleteFrom'
-    object_type = 'ConfFile'
-    object_ids = []
-
     def call(self, auth, conf_file_id, node_id_or_hostname):
        # Get configuration file
         conf_files = ConfFiles(self.api, [conf_file_id])
@@ -46,6 +44,7 @@ class DeleteConfFileFromNode(Method):
             conf_file.remove_node(node)
 
         # Log affected objects
-        self.object_ids = [conf_file_id, node['node_id']]
+        self.event_objects = {'ConfFile': [conf_file_id], 
+                             'Node': [node['node_id']]}
 
         return 1