From: Anil-Kumar Vengalil Date: Sat, 5 Sep 2009 16:32:47 +0000 (+0000) Subject: getting record objects X-Git-Tag: sfa-0.9-1~18 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a5a52b745b71f227bfbf720fb941fbfc6653a3a4;p=sfa.git getting record objects --- diff --git a/sfa/methods/get_credential.py b/sfa/methods/get_credential.py index 3e11f88e..f6f34d65 100644 --- a/sfa/methods/get_credential.py +++ b/sfa/methods/get_credential.py @@ -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]