X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fregistry_manager.py;h=8f65e068ad673e50b7aa5c64b09bdf9d75ccb739;hb=cc1a4dcc8ab71ce8cd1a0bed24a9e7256e6e762b;hp=cc5654a6be6bc983d54d05ec1c12d64a0a3c2dbe;hpb=b8b423eb3d513ae7ca9d1c8dc8718101a95e2055;p=sfa.git diff --git a/sfa/managers/registry_manager.py b/sfa/managers/registry_manager.py index cc5654a6..8f65e068 100644 --- a/sfa/managers/registry_manager.py +++ b/sfa/managers/registry_manager.py @@ -42,7 +42,7 @@ from sqlalchemy.orm.collections import InstrumentedList # e.g. registry calls this 'reg-researchers' # while some drivers call this 'researcher' # we need to make sure that both keys appear and are the same -def _normalize_input (record, reg_key, driver_key): +def _normalize_input(record, reg_key, driver_key): # this looks right, use this for both keys if reg_key in record: # and issue a warning if they were both set and different @@ -229,7 +229,7 @@ class RegistryManager: # used to be in the driver code, sounds like a poorman thing though def solve_neighbour_url (record): if not record.type.startswith('authority'): return - hrn=record.hrn + hrn = record.hrn for neighbour_dict in [ api.aggregates, api.registries ]: if hrn in neighbour_dict: record.url=neighbour_dict[hrn].get_url()