svn keywords
[plcapi.git] / PLC / Methods / DeletePerson.py
index d789adc..893b16e 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -25,7 +27,6 @@ class DeletePerson(Method):
 
     returns = Parameter(int, '1 if successful')
 
-
     def call(self, auth, person_id_or_email):
         # Get account information
         persons = Persons(self.api, [person_id_or_email])
@@ -46,7 +47,7 @@ class DeletePerson(Method):
         person.delete()
        
        # Logging variables
-       self.object_ids = [person['person_id']]
+       self.event_objects = {'Person': [person['person_id']]}
        self.message = 'Person %d deleted' % person['person_id']
 
         return 1