1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/b89b8f8e5761/ Changeset: b89b8f8e5761 User: jmchilton Date: 2014-12-15 19:37:22+00:00 Summary: Add code_file example tool from Bjoern. Affected #: 3 files diff -r 6d85572398e770efcd0fbf46cf9d7655795dd3e1 -r b89b8f8e57615b2a480d5abe13a111df159981e5 test/functional/tools/code_file.py --- /dev/null +++ b/test/functional/tools/code_file.py @@ -0,0 +1,14 @@ + + +from galaxy.tools.parameters import DataToolParameter + + + +def validate_input( trans, error_map, param_values, page_param_map ): + """ + Validates the user input, before execution. + """ + first = param_values['name1'] + second = param_values['name2'] + if first == second: + error_map['name1'] = "The value names should be different." diff -r 6d85572398e770efcd0fbf46cf9d7655795dd3e1 -r b89b8f8e57615b2a480d5abe13a111df159981e5 test/functional/tools/code_file.xml --- /dev/null +++ b/test/functional/tools/code_file.xml @@ -0,0 +1,15 @@ +<tool id="code_file" name="code_file" version="1.0.0"> + <description>code_file</description> + <code file="code_file.py" /> + <command>cat $input1 > $output</command> + <inputs> + <param name="input1" type="data" label="Concatenate Dataset" /> + <param name="name1" type="text" value="FactorName" label="value one should be different than value two" /> + <param name="name2" type="text" value="FactorName" label="value one should be different than value two" /> + </inputs> + <outputs> + <data format="txt" name="output" /> + </outputs> + <tests> + </tests> +</tool> diff -r 6d85572398e770efcd0fbf46cf9d7655795dd3e1 -r b89b8f8e57615b2a480d5abe13a111df159981e5 test/functional/tools/samples_tool_conf.xml --- a/test/functional/tools/samples_tool_conf.xml +++ b/test/functional/tools/samples_tool_conf.xml @@ -3,6 +3,7 @@ <tool file="upload.xml"/><tool file="simple_constructs.xml" /><tool file="composite.xml" /> + <tool file="code_file.xml" /><tool file="disambiguate_cond.xml" /><tool file="multi_repeats.xml"/><tool file="multi_page.xml"/> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.