svn keywords
[plcapi.git] / PLC / Methods / AddPerson.py
index 511040f..99f634c 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -30,7 +32,6 @@ class AddPerson(Method):
 
     returns = Parameter(int, 'New person_id (> 0) if successful')
 
-
     def call(self, auth, person_fields):
         person_fields = dict(filter(can_update, person_fields.items()))
         person_fields['enabled'] = False
@@ -38,7 +39,7 @@ class AddPerson(Method):
         person.sync()
 
        # Logging variables
-       self.object_ids = [person['person_id']]
+       self.event_objects = {'Person': [person['person_id']]}
        self.message = 'Person %d added' % person['person_id']  
 
         return person['person_id']