remove sfa upcalls
[plcapi.git] / PLC / Methods / AddPersonKey.py
index 3a06a34..5212b44 100644 (file)
@@ -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']
 
@@ -44,7 +43,7 @@ class AddPersonKey(Method):
         if person['peer_id'] is not None:
             raise PLCInvalidArgument, "Not a local account"
 
-       # If we are not admin, make sure caller is adding a key to their account
+        # If we are not admin, make sure caller is adding a key to their account
         if 'admin' not in self.caller['roles']:
             if person['person_id'] != self.caller['person_id']:
                 raise PLCPermissionDenied, "You may only modify your own keys"
@@ -59,8 +58,4 @@ class AddPersonKey(Method):
         self.message = 'Key %d added to person %d' % \
                         (key['key_id'], person['person_id'])
 
-        # sync with the geni db
-        sfa = SFA()
-        sfa.update_record(person, 'person') 
-        
         return key['key_id']