# isolate special vini case in separate method
self.create_special_vini_record (interface_hrn)
- def check_hrn (record, hrn):
- if record.hrn != hrn:
- record.hrn=hrn
- dbsession.commit()
-
# start importing
for site in sites:
site_hrn = _get_site_hrn(interface_hrn, site)
self.logger.log_exc("PlImporter: failed to import site. Skipping child records")
continue
else:
- # we might have renamed it - since we first use pointer to locate it
- check_hrn(site_record, site_hrn)
# xxx update the record ...
pass
site_record.stale=False
self.logger.log_exc("PlImporter: failed to import node")
else:
# xxx update the record ...
- check_hrn(node_record, node_hrn)
+ pass
node_record.stale=False
site_pis=[]
# update the record ?
# if user's primary key has changed then we need to update the
# users gid by forcing an update here
- check_hrn (user_record, person_hrn)
sfa_keys = user_record.reg_keys
def key_in_list (key,sfa_keys):
for reg_key in sfa_keys:
self.logger.log_exc("PlImporter: failed to import slice")
else:
# xxx update the record ...
- check_hrn (slice_record, slice_hrn)
self.logger.warning ("Slice update not yet implemented")
pass
# record current users affiliated with the slice