All commands now handle outputing to another DMS + small fixes
This commit is contained in:
@ -508,7 +508,7 @@ def run(config):
|
||||
entries = input[1]
|
||||
o_view = output[1]
|
||||
|
||||
if 'taxoURI' in config['obi'] : # TODO default None problem
|
||||
if 'taxoURI' in config['obi'] and config['obi']['taxoURI'] is not None:
|
||||
taxo_uri = open_uri(config['obi']['taxoURI'])
|
||||
if taxo_uri is None:
|
||||
raise RollbackException("Couldn't open taxonomy, rollbacking view", o_view)
|
||||
@ -529,8 +529,8 @@ def run(config):
|
||||
input_dms_name=[input[0].name]
|
||||
input_view_name=[input[1].name]
|
||||
if 'taxoURI' in config['obi'] and config['obi']['taxoURI'] is not None:
|
||||
input_dms_name.append(config['obi']['taxoURI'].split("/", 1)[0])
|
||||
input_view_name.append(config['obi']['taxoURI'].split("/", 1)[1])
|
||||
input_dms_name.append(config['obi']['taxoURI'].split("/")[-3])
|
||||
input_view_name.append("taxonomy/"+config['obi']['taxoURI'].split("/")[-1])
|
||||
o_view.write_config(config, "uniq", command_line, input_dms_name=input_dms_name, input_view_name=input_view_name)
|
||||
output[0].record_command_line(command_line)
|
||||
|
||||
|
Reference in New Issue
Block a user