getting record objects
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sat, 5 Sep 2009 16:32:47 +0000 (16:32 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sat, 5 Sep 2009 16:32:47 +0000 (16:32 +0000)
sfa/methods/get_credential.py

index 3e11f88..f6f34d6 100644 (file)
@@ -108,7 +108,7 @@ class get_credential(Method):
         # find a record that matches
         record = None
         table = GeniTable()
-        records = table.find({'type': type, 'hrn':  hrn})
+        records = table.findObjects({'type': type, 'hrn':  hrn})
         if not records:
             raise RecordNotFound(hrn)
         record = records[0]