- refactored marc's kupdate.sh into a new script kvariant.sh
[plcapi.git] / PLC / Methods / DeleteAddress.py
index f50e15b..cf8032c 100644 (file)
@@ -1,3 +1,4 @@
+# $Id$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -35,6 +36,9 @@ class DeleteAddress(Method):
                 raise PLCPermissionDenied, "Address must be associated with one of your sites"
 
         address.delete()
-        self.object_ids = [address['address_id']]
+
+       # Logging variables
+        self.event_objects = {'Address': [address['address_id']]}
+       self.message = 'Address %d deleted' % address['address_id']     
 
         return 1