Dear all,

I developed a tool which allows an optional selection as input amongst others. It works quite neat if I run it via "Analyse Data".
Actually, it only breaks in one condition:
If I try to run it "as a Workflow" and set the "multiple selection input" to be set at runtime AND do not select anything at runtime it'll raise a Cheetah error. Even if I select nothing but prior to runtime as workflow it works fine again.

The multiple selection is based on a data table/ loc-file.

Any ideas?

Cheers,
Christan


relevant tool specification snippet:
---------------------------------------------

[...]
<param [...] type="select" optional="true" multiple="true" display="checkboxes" [...]>
        <options from_data_table="fmi_[...]"/>
    </param>
[...]


Cheetah error:
--------------------

Traceback (most recent call last):
File "[...]/galaxy/galaxy_dist/lib/galaxy/jobs/runners/__init__.py", line 123, in prepare_job
    job_wrapper.prepare()
File "[...]/galaxy/galaxy_dist/lib/galaxy/jobs/__init__.py", line 702, in prepare
    self.command_line = self.tool.build_command_line( param_dict )
File "[...]/galaxy/galaxy_dist/lib/galaxy/tools/__init__.py", line 2639, in build_command_line
    command_line = fill_template( self.command, context=param_dict )
File "[...]/galaxy/galaxy_dist/lib/galaxy/util/template.py", line 9, in fill_template
    return str( Template( source=template_text, searchList=[context] ) )
File "[...]/galaxy/galaxy_dist/eggs/Cheetah-2.2.2-py2.6-linux-x86_64-ucs4.egg/Cheetah/Template.py", line 1004, in __str__
    return getattr(self, mainMethName)()
File "cheetah_DynamicallyCompiledCheetahTemplate_1391423600_85_54475.py", line 89, in respond File "cheetah_DynamicallyCompiledCheetahTemplate_1391423600_85_54475.py", line 89, in <lambda>
IndexError: list index out of range


Galaxy:
----------
changeset:   11219:5c789ab4144a
branch:      stable



___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
 http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
 http://galaxyproject.org/search/mailinglists/

Reply via email to