git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- added 'message' instance variable (high level description of this event)
[plcapi.git]
/
PLC
/
Methods
/
DeletePerson.py
diff --git
a/PLC/Methods/DeletePerson.py
b/PLC/Methods/DeletePerson.py
index
fd930a1
..
93ae858
100644
(file)
--- a/
PLC/Methods/DeletePerson.py
+++ b/
PLC/Methods/DeletePerson.py
@@
-43,6
+43,9
@@
class DeletePerson(Method):
raise PLCPermissionDenied, "Not allowed to delete specified account"
person.delete()
+
+ # Logging variables
self.object_ids = [person['person_id']]
+ self.message = 'Person %d deleted' % person['person_id']
return 1