commit/galaxy-central: greg: Attempt to correctly render dynamically generated select lists when previewing a tool in the tool shed.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/39200ca2e42d/ changeset: 39200ca2e42d user: greg date: 2012-04-16 22:08:39 summary: Attempt to correctly render dynamically generated select lists when previewing a tool in the tool shed. affected #: 1 file diff -r 5c93ac32ace1b7f61f6c95bba0a0fe04d6f85755 -r 39200ca2e42dbc4ff264f9c9708795084fbb5092 templates/webapps/community/repository/tool_form.mako --- a/templates/webapps/community/repository/tool_form.mako +++ b/templates/webapps/community/repository/tool_form.mako @@ -90,6 +90,16 @@ field = SelectField( param.name, display=param.display ) field.add_option( param.data_ref, param.data_ref ) field_html = field.get_html( prefix ) + elif isinstance( param, SelectToolParameter ) and param.is_dynamic: + field = SelectField( param.name, display=param.display ) + dynamic_options = param.options + if dynamic_options.index_file: + option_label = "Dynamically generated from entries in file %s" % str( dynamic_options.index_file ) + field.add_option( option_label, "none" ) + elif dynamic_options.missing_index_file: + option_label = "Dynamically generated from entries in missing file %s" % str( dynamic_options.missing_index_file ) + field.add_option( option_label, "none" ) + field_html = field.get_html( prefix ) else: field = param.get_html_field( trans, None, other_values ) field_html = field.get_html( prefix ) 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.
participants (1)
-
Bitbucket