Commit 969d8c74 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases] Fixed view_output locally

parent c0b476ce
......@@ -582,6 +582,19 @@ def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None,
if view is None:
return 1
dataset_hash = hashDataset(db_name, protocol_name, set_name)
view.setup(os.path.join(configuration.cache,
toPath(dataset_hash, '.db')), pack=False)
input_group = inputs.InputGroup(set_name, restricted_access=False)
for output_name, dataformat_name in db_set['outputs'].items():
if (excluded_outputs is not None) and (output_name in excluded_outputs):
continue
input = inputs.Input(output_name, database.dataformats[dataformat_name], view.data_sources[output_name])
input_group.add(input)
else:
host = dock.Host(raise_on_errors=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment