Commit 449ed83b authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Some renames

parent 95a1ed07
......@@ -55,7 +55,7 @@ class JflowArgumentParser (argparse.ArgumentParser):
return new_arg_strings
def show_workflow_outputs(m_workflow, logs):
def print_workflow_outputs(m_workflow, logs):
outputs = m_workflow.get_outputs_per_components()
descriptions = m_workflow.get_description_per_components()
idx = 1
......@@ -106,11 +106,11 @@ if __name__ == '__main__':
sub_parser.set_defaults(cmd_object="delete")
# Add outputs workflow availability
sub_parser = subparsers.add_parser("outputs", help="Get workflow outputs")
sub_parser.add_argument("--workflow-id", type=str, help="Workflow for which show outputs",
sub_parser = subparsers.add_parser("outputs", help="Print workflow outputs")
sub_parser.add_argument("--workflow-id", type=str, help="Workflow for which display outputs",
required=True, dest="workflow_id")
sub_parser.add_argument("--logs", help="Show logs files", dest="logs", action="store_true")
sub_parser.add_argument("--no-logs", help="Don't show logs files", dest="logs", action="store_false")
sub_parser.add_argument("--logs", help="Include logs files", dest="logs", action="store_true")
sub_parser.add_argument("--no-logs", help="Don't include logs files", dest="logs", action="store_false")
sub_parser.set_defaults(logs=False)
sub_parser.set_defaults(cmd_object="outputs")
......@@ -181,7 +181,7 @@ if __name__ == '__main__':
elif args["cmd_object"] == "outputs":
try:
my_workflow = wfmanager.get_workflow(args["workflow_id"])
show_workflow_outputs(my_workflow, args["logs"])
print_workflow_outputs(my_workflow, args["logs"])
except Exception as e:
utils.display_error_message(str(e))
elif args["cmd_object"] == "execution_graph":
......
......@@ -495,12 +495,7 @@ class JFlowServer (object):
'size': get_octet_string_representation(os.path.getsize(os.path.abspath(path))),
'extension': os.path.splitext(path)[1]
}
else:
return {
'url': "#",
'size': "Folder",
'extension': ""
}
# TODO: show output directories and add the possibility to browse them
@cherrypy.expose
@jsonify
......
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