from sfa.trust.certificate import *
from sfa.util.misc import *
from sfa.util.sfalogging import *
-from sfa.util.genitable import *
from sfa.util.api import *
class GeniAPI(BaseAPI):
if not auth_hrn or hrn == self.config.SFA_INTERFACE_HRN:
auth_hrn = hrn
auth_info = self.auth.get_auth_info(auth_hrn)
+ from sfa.util.genitable import *
table = GeniTable()
records = table.findObjects(hrn)
if not records:
def fill_record_geni_info(self, record):
geni_info = {}
type = record['type']
+ from sfa.util.genitable import *
table = GeniTable()
if (type == "slice"):
person_ids = record.get("person_ids", [])
# build a list of the new person ids, by looking up each person to get
# their pointer
newIdList = []
+ from sfa.util.genitable import *
table = GeniTable()
records = table.find({'type': 'user', 'hrn': newList})
for rec in records: