svn keywords
[plcapi.git] / PLC / Methods / DeleteConfFile.py
index a07964a..2d7183b 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -20,8 +22,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])
@@ -30,6 +30,6 @@ class DeleteConfFile(Method):
 
         conf_file = conf_files[0]
         conf_file.delete()
-       self.object_ids = [conf_file['conf_file_id']]
+       self.event_objects = {'ConfFile': [conf_file['conf_file_id']]}
 
         return 1