get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / DeletePCU.py
index 50adb88..fe59abc 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
@@ -37,6 +35,9 @@ class DeletePCU(Method):
                 raise PLCPermissionDenied, "Not allowed to update that PCU"
 
         pcu.delete()
-       self.object_ids = [pcu['pcu_id']]
+
+        # Logging variables
+        self.event_objects = {'PCU': [pcu['pcu_id']]}
+        self.message = 'PCU %d deleted' % pcu['pcu_id']
 
         return 1