- added 'message' instance variable (high level description of this event)
[plcapi.git] / PLC / Methods / DeletePersonFromSite.py
index 2c48127..b497463 100644 (file)
@@ -46,6 +46,8 @@ class DeletePersonFromSite(Method):
         if site['site_id'] in person['site_ids']:
             site.remove_person(person)
 
+       # Logging variables
        self.object_ids = [site['site_id']]
-       
+       self.message = 'Person %d deleted from site %d  ' % \
+               (person['person_id'], site['site_id'])
         return 1