this should use tags vs nodegroups, but for now we do a quick fix, as it causes an...
[plcapi.git] / PLC / Methods / AddPerson.py
index 511040f..cb0aa71 100644 (file)
@@ -30,7 +30,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 +37,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']