- now using event_objects to log affected objects
[plcapi.git] / PLC / Methods / AddRole.py
index bed028a..7266180 100644 (file)
@@ -27,6 +27,6 @@ class AddRole(Method):
         role['role_id'] = role_id
         role['name'] = name
         role.sync(insert = True)
-       self.object_ids = [role['role_id']]
+       self.event_objects = {'Role': [role['role_id']]}
 
         return 1