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
remove sfa upcalls
[plcapi.git]
/
PLC
/
Methods
/
AddPersonKey.py
diff --git
a/PLC/Methods/AddPersonKey.py
b/PLC/Methods/AddPersonKey.py
index
c7a8d24
..
5212b44
100644
(file)
--- 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.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']
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'])
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']
return key['key_id']