From: Tony Mack Date: Fri, 24 Apr 2009 16:42:14 +0000 (+0000) Subject: resolve_raw no longer exists, call resolve directly on genitable. If we are doing... X-Git-Tag: sfa-0.9-0@14641~450 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f855e3f317d381331eb49829fa48edb48337bba2;p=sfa.git resolve_raw no longer exists, call resolve directly on genitable. If we are doing this often maybe resolve_raw should be brought back and added to api? --- diff --git a/geni/util/api.py b/geni/util/api.py index bf5d4f78..b501fd72 100644 --- a/geni/util/api.py +++ b/geni/util/api.py @@ -396,8 +396,15 @@ class GeniAPI: # their pointer newIdList = [] for hrn in newList: - userRecord = self.resolve_raw("user", hrn)[0] - newIdList.append(userRecord.get_pointer()) + auth_hrn = self.auth.get_authority(hrn) + if not auth_hrn: + auth_hrn = hrn + auth_info = self.auth.get_auth_info(auth_hrn) + table = self.auth.get_auth_table(auth_hrn) + records = table.resolve('user', hrn) + if records: + userRecord = records[0] + newIdList.append(userRecord.get_pointer()) # build a list of the old person ids from the person_ids field of the # pl_info