bug fix: record is the slice record, and it is used later
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sat, 5 Sep 2009 16:40:34 +0000 (16:40 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sat, 5 Sep 2009 16:40:34 +0000 (16:40 +0000)
sfa/plc/api.py

index cc6430b..9ca932b 100644 (file)
@@ -426,8 +426,8 @@ class GeniAPI:
         newIdList = []
         table = GeniTable()
         records = table.find({'type': 'user', 'hrn': newList})
-        for record in records:
-            newIdList.append(record['pointer'])
+        for rec in records:
+            newIdList.append(rec['pointer'])
 
         # build a list of the old person ids from the person_ids field 
         if oldRecord: