X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeletePerson.py;h=e85d2e9148f283b62de93d86b04872debad42f3e;hb=bd0cbf4f7f2e4cf7ceda500bfa6f98c0a700018b;hp=738850c08766c2f6433b92eac1b9ba87bdac2d57;hpb=65eccc239527f13409cc465b47d34358d4e5ae1a;p=plcapi.git diff --git a/PLC/Methods/DeletePerson.py b/PLC/Methods/DeletePerson.py index 738850c..e85d2e9 100644 --- a/PLC/Methods/DeletePerson.py +++ b/PLC/Methods/DeletePerson.py @@ -1,11 +1,8 @@ -# $Id$ -# $URL$ from PLC.Faults import * from PLC.Method import Method 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): """ @@ -46,12 +43,9 @@ class DeletePerson(Method): raise PLCPermissionDenied, "Not allowed to delete specified account" person.delete() - + # 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