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 sfa upcalls
[plcapi.git]
/
PLC
/
Methods
/
DeletePerson.py
diff --git
a/PLC/Methods/DeletePerson.py
b/PLC/Methods/DeletePerson.py
index
893b16e
..
738850c
100644
(file)
--- a/
PLC/Methods/DeletePerson.py
+++ b/
PLC/Methods/DeletePerson.py
@@
-5,6
+5,7
@@
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Persons import Person, Persons
from PLC.Auth import Auth
from PLC.Parameter import Parameter, Mixed
from PLC.Persons import Person, Persons
from PLC.Auth import Auth
+from PLC.SFA import SFA
class DeletePerson(Method):
"""
class DeletePerson(Method):
"""
@@
-46,8
+47,11
@@
class DeletePerson(Method):
person.delete()
person.delete()
- # Logging variables
- self.event_objects = {'Person': [person['person_id']]}
- self.message = 'Person %d deleted' % person['person_id']
+ # Logging variables
+ self.event_objects = {'Person': [person['person_id']]}
+ self.message = 'Person %d deleted' % person['person_id']
+
+ sfa = SFA()
+ sfa.delete_record(person, 'person')
return 1
return 1