From f855e3f317d381331eb49829fa48edb48337bba2 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 24 Apr 2009 16:42:14 +0000 Subject: [PATCH] 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? --- geni/util/api.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.43.0