Commit 67bbdde2 authored by Celine Noirot's avatar Celine Noirot
Browse files

Add choices option to add_input_file_list function.

parent 0bc6c8f4
......@@ -212,7 +212,7 @@ class Workflow(threading.Thread):
self.params_order.append(name)
self.__setattr__(name, new_param)
def add_input_file_list(self, name, help, file_format="any", default=None, type="inputfile",
def add_input_file_list(self, name, help, file_format="any", choices=None, default=None, type="inputfile",
required=False, flag=None, group="default", display_name=None, size_limit="0", add_to=None,
rules=None):
# check if the size provided is correct
......@@ -225,7 +225,7 @@ class Workflow(threading.Thread):
inputs = [IOFile(file, file_format, name, None) for file in default]
else:
inputs = [IOFile(default, file_format, name, None)]
new_param = InputFileList(name, help, flag=flag, file_format=file_format, default=inputs,
new_param = InputFileList(name, help, flag=flag, file_format=file_format, default=inputs, choices=choices,
type=type, required=required, group=group, display_name=display_name, size_limit=size_limit,
rules=rules)
new_param.linkTrace_nameid = name
......
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