mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
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.
43 lines
2.5 KiB
XML
43 lines
2.5 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.
|
|
|
|
TODO: Hack to get biomart to work - the 'add_to_URL' param can be eliminated when the Biomart team encodes URL prior to sending, meanwhile
|
|
everything including and beyond the first '&' is truncated from URL. They said they'll let us know when this is fixed at their end.
|
|
-->
|
|
<tool name="GrameneMart" id="gramenemart" tool_type="data_source" version="1.0.1">
|
|
<description> Central server</description>
|
|
<command interpreter="python">data_source.py $output $__app__.config.output_size_limit</command>
|
|
<inputs action="http://www.gramene.org/biomart/martview" check_values="false" method="get" target="_top">
|
|
<display>go to GrameneMart Central $GALAXY_URL</display>
|
|
<param name="GALAXY_URL" type="baseurl" value="/tool_runner/biomart" />
|
|
</inputs>
|
|
<request_param_translation>
|
|
<request_param galaxy_name="URL" remote_name="URL" missing="">
|
|
<append_param separator="&" first_separator="?" join="=">
|
|
<value name="_export" missing="1" />
|
|
<value name="GALAXY_URL" missing="0" />
|
|
</append_param>
|
|
</request_param>
|
|
<request_param galaxy_name="data_type" remote_name="exportView_outputformat" missing="tabular">
|
|
<value_translation>
|
|
<value galaxy_value="tabular" remote_value="TSV" />
|
|
</value_translation>
|
|
</request_param>
|
|
<request_param galaxy_name="URL_method" remote_name="URL_method" missing="get" />
|
|
<request_param galaxy_name="dbkey" remote_name="dbkey" missing="?" />
|
|
<request_param galaxy_name="organism" remote_name="organism" missing="" />
|
|
<request_param galaxy_name="table" remote_name="table" missing="" />
|
|
<request_param galaxy_name="description" remote_name="description" missing="" />
|
|
<request_param galaxy_name="name" remote_name="name" missing="Biomart query" />
|
|
<request_param galaxy_name="info" remote_name="info" missing="" />
|
|
</request_param_translation>
|
|
<uihints minwidth="800"/>
|
|
<outputs>
|
|
<data name="output" format="tabular" />
|
|
</outputs>
|
|
<options sanitize="False" refresh="True"/>
|
|
</tool>
|