-# $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']
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']