- # update testbed-specific data f needed
- logger.info("Getting driver from manager=%s"%self)
- pointer = self.driver.register (record, hrn, pub_key)
+ elif isinstance (record, RegSlice):
+ researcher_hrns = getattr(record,'researcher',None)
+ if researcher_hrns is not None: record.update_researchers (researcher_hrns)
+
+ elif isinstance (record, RegUser):
+ # create RegKey objects for incoming keys
+ if hasattr(record,'keys'):
+ logger.debug ("creating %d keys for user %s"%(len(record.keys),record.hrn))
+ record.reg_keys = [ RegKey (key) for key in record.keys ]
+
+ # update testbed-specific data if needed
+ pointer = self.driver.register (record.__dict__, hrn, pub_key)