X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeletePerson.py;h=91267ca49e780ecde8c16fb78230398dab5b1bc4;hb=053fd6410f733aef90482cda571059ed116d40e1;hp=d789adcdc19d310e0277255b77f43f3ca5c244f8;hpb=ac29a9eebfa173766903dbc8c06c01fc18335bab;p=plcapi.git diff --git a/PLC/Methods/DeletePerson.py b/PLC/Methods/DeletePerson.py index d789adc..91267ca 100644 --- a/PLC/Methods/DeletePerson.py +++ b/PLC/Methods/DeletePerson.py @@ -1,3 +1,5 @@ +# $Id$ +# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -25,7 +27,6 @@ class DeletePerson(Method): returns = Parameter(int, '1 if successful') - def call(self, auth, person_id_or_email): # Get account information persons = Persons(self.api, [person_id_or_email]) @@ -44,9 +45,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'] + + # Logging variables + self.event_objects = {'Person': [person['person_id']]} + self.message = 'Person %d deleted' % person['person_id'] return 1