mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
f92b25d2f5
Sanitization now occurs as part of the InputValueWrapper logic. Previously sanitization occurred as soon as parameter values were provided by the user via form submits, causing the sanitized values to be stored in the database. Now the original user specified values are stored in the database and sanitation happens when str is called on the InputValueWrapper, i.e. during command-line generation and when generating configfiles. Abstract out param name and value translations that are performed on data source tools. This changes some of the names of the tags used for these purposes (e.g. data_type_translation becomes value_translation) to reflect this generalization. The ToolConfigSyntax wiki page has been updated with these changes. Future Enhancement: Allow methods with arguments and keywords to be specified for sanitation and translation purposes.
42 lines
2.4 KiB
XML
42 lines
2.4 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
If the value of 'URL_method' is 'get', the request will consist of the value of 'URL' coming back in
|
|
the initial response. If value of 'URL_method' is 'post', any additional params coming back in the
|
|
initial response ( in addition to 'URL' ) will be encoded and appended to URL and a post will be performed.
|
|
-->
|
|
<tool name="UCSC Test" id="ucsc_table_direct_test1" tool_type="data_source">
|
|
<description>table browser</description>
|
|
<command interpreter="python">data_source.py $output $__app__.config.output_size_limit</command>
|
|
<inputs action="http://genome-test.cse.ucsc.edu/cgi-bin/hgTables" check_values="false" method="get">
|
|
<display>go to UCSC Table Browser $GALAXY_URL</display>
|
|
<param name="GALAXY_URL" type="baseurl" value="/tool_runner" />
|
|
<param name="tool_id" type="hidden" value="ucsc_table_direct_test1" />
|
|
<param name="sendToGalaxy" type="hidden" value="1" />
|
|
<param name="hgta_compressType" type="hidden" value="none" />
|
|
<param name="hgta_outputType" type="hidden" value="bed" />
|
|
</inputs>
|
|
<request_param_translation>
|
|
<request_param galaxy_name="URL_method" remote_name="URL_method" missing="post" />
|
|
<request_param galaxy_name="URL" remote_name="URL" missing="" />
|
|
<request_param galaxy_name="dbkey" remote_name="db" missing="?" />
|
|
<request_param galaxy_name="organism" remote_name="org" missing="unknown species" />
|
|
<request_param galaxy_name="table" remote_name="hgta_table" missing="unknown table" />
|
|
<request_param galaxy_name="description" remote_name="hgta_regionType" missing="no description" />
|
|
<request_param galaxy_name="data_type" remote_name="hgta_outputType" missing="tabular" >
|
|
<value_translation>
|
|
<value galaxy_value="tabular" remote_value="primaryTable" />
|
|
<value galaxy_value="tabular" remote_value="selectedFields" />
|
|
<value galaxy_value="wig" remote_value="wigData" />
|
|
<value galaxy_value="interval" remote_value="tab" />
|
|
<value galaxy_value="html" remote_value="hyperlinks" />
|
|
<value galaxy_value="fasta" remote_value="sequence" />
|
|
</value_translation>
|
|
</request_param>
|
|
</request_param_translation>
|
|
<uihints minwidth="800"/>
|
|
<outputs>
|
|
<data name="output" format="tabular" />
|
|
</outputs>
|
|
<options sanitize="False" refresh="True"/>
|
|
</tool>
|