X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAddPersonKey.py;h=5212b44c7b920ee486039b0a4dbce5198c3525d7;hb=e58db379e1197b73d3b6f014d5afd51ce852b43c;hp=c7a8d24291a4a9d1732ce4a53bf841f1bedd2343;hpb=713e74813ad3dee0958294b3af731a8098eb61b1;p=plcapi.git diff --git a/PLC/Methods/AddPersonKey.py b/PLC/Methods/AddPersonKey.py index c7a8d24..5212b44 100644 --- a/PLC/Methods/AddPersonKey.py +++ b/PLC/Methods/AddPersonKey.py @@ -6,7 +6,6 @@ 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 +58,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']