Commit be1a5cf0 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

delete choices from add_input_file

parent 1dfadbdf
......@@ -116,15 +116,15 @@ class Workflow(threading.Thread):
self.set_stderr()
self._serialize()
def add_input_file(self, name, help, file_format="any", default=None, type="inputfile", choices=None,
required=False, flag=None, group="default", display_name=None, is_list=False, add_to=None):
def add_input_file(self, name, help, file_format="any", default=None, type="inputfile", required=False,
flag=None, group="default", display_name=None, is_list=False, add_to=None):
if is_list:
if default == None: default = []
new_param = InputFileList(name, help, flag=flag, file_format=file_format, default=default, type=type,
choices=choices, required=required, group=group, display_name=display_name)
new_param = InputFileList(name, help, flag=flag, file_format=file_format, default=default,
type=type, required=required, group=group, display_name=display_name)
else:
new_param = InputFile(name, help, flag=flag, file_format=file_format, default=default, type=type,
choices=choices, required=required, group=group, display_name=display_name)
new_param = InputFile(name, help, flag=flag, file_format=file_format, default=default,
type=type, required=required, group=group, display_name=display_name)
# if this input should be added to a particular parameter
if add_to:
try:
......
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