bugfix
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sat, 5 Sep 2009 16:45:11 +0000 (16:45 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Sat, 5 Sep 2009 16:45:11 +0000 (16:45 +0000)
sfa/methods/update.py

index ff40f58..ad60284 100644 (file)
@@ -40,7 +40,7 @@ class update(Method):
         self.api.auth.verify_object_permission(hrn)
         table = GeniTable()
         # make sure the record exists
-        records = table.find({'type': type, 'hrn': hrn})
+        records = table.findObjects({'type': type, 'hrn': hrn})
         if not records:
             raise RecordNotFound(hrn)
         record = records[0]