- auth_record = RegRecord("authority", hrn=site_hrn, gid=auth_info.get_gid_object(),
- pointer=site['site_id'],
- authority=get_authority(site_hrn))
- logger.info("Import: Importing auth %s"%auth_record)
+ auth_record = RegAuthority()
+ auth_record.type='authority'
+ auth_record.hrn=site_hrn
+ auth_record.gid=auth_info.get_gid_object()
+ auth_record.pointer=site['site_id']
+ auth_record.authority=get_authority(site_hrn)