X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAddPersonKey.py;h=af701859c0ad3f84c857f629f8e2f876e4f9e51e;hb=4e770b3cf4e6b16150fd479ace9854eaee3399b6;hp=c7a8d24291a4a9d1732ce4a53bf841f1bedd2343;hpb=ca5231ba6d8aa1891f91f71bec5c81e557a0946e;p=plcapi.git diff --git a/PLC/Methods/AddPersonKey.py b/PLC/Methods/AddPersonKey.py index c7a8d24..af70185 100644 --- a/PLC/Methods/AddPersonKey.py +++ b/PLC/Methods/AddPersonKey.py @@ -1,12 +1,9 @@ -# $Id$ -# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Keys import Key, Keys from PLC.Persons import Person, Persons from PLC.Auth import Auth -from PLC.SFA import SFA can_update = lambda (field, value): field in ['key_type','key'] @@ -59,9 +56,4 @@ class AddPersonKey(Method): self.message = 'Key %d added to person %d' % \ (key['key_id'], person['person_id']) - # sync with the geni db - person['key'] = key_fields['key'] - sfa = SFA(self.api) - sfa.update_record(person, 'user') - return key['key_id']