fix typo
authorTony Mack <tmack@cs.princeton.edu>
Thu, 3 Sep 2009 14:38:18 +0000 (14:38 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 3 Sep 2009 14:38:18 +0000 (14:38 +0000)
PLC/Methods/AddPersonToSite.py
PLC/SFA.py

index e208b69..a6699cf 100644 (file)
@@ -58,6 +58,6 @@ class AddPersonToSite(Method):
                        (person['person_id'], site['site_id'])
 
         sfa = SFA(self.api)
-        self.update_record(person, 'user')
+        sfa.update_record(person, 'user')
 
         return 1
index ce097f9..efd2aa1 100644 (file)
@@ -136,7 +136,7 @@ class SFA:
             # object 
             object['hrn'] = self.get_object_hrn(type, object, self.authority, login_base)   
             object['type'] = type
-            if type in ['user']:
+            if type in ['user', 'person']:
                 record = UserRecord(dict=object)
 
             elif type in ['slice']: