commit/galaxy-central: greg: Fix for loading tools from an installed tool shed repository into the tool panel outside of any sections.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/23b173247757/ changeset: 23b173247757 user: greg date: 2012-02-07 22:20:48 summary: Fix for loading tools from an installed tool shed repository into the tool panel outside of any sections. affected #: 4 files diff -r 60231c4aab751817fc3937c1974e3fc11632df2e -r 23b173247757c383e9f1c4fb736008a6623e7327 lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -317,10 +317,10 @@ id_elem.text = tool.id version_elem = SubElement( tool_elem, 'version' ) version_elem.text = tool.version + if not tool_section: + elem_list.append( tool_elem ) if tool_section: elem_list.append( root_elem ) - elif tool_elem: - elem_list.append( tool_elem ) return elem_list def generate_workflow_metadata( relative_path, exported_workflow_dict, metadata_dict ): """ diff -r 60231c4aab751817fc3937c1974e3fc11632df2e -r 23b173247757c383e9f1c4fb736008a6623e7327 lib/galaxy/web/controllers/admin_toolshed.py --- a/lib/galaxy/web/controllers/admin_toolshed.py +++ b/lib/galaxy/web/controllers/admin_toolshed.py @@ -435,9 +435,14 @@ original_section_name = tool_panel_section[ 'name' ] tool_panel_section_select_field = build_tool_panel_section_select_field( trans ) no_changes_check_box = CheckboxField( 'no_changes', checked=True ) - message = "The tools contained in your <b>%s</b> repository were last loaded into the tool panel section <b>%s</b>. " % ( repository.name, original_section_name ) - message += "Uncheck the <b>No changes</b> check box and select a different tool panel section to load the tools in a " - message += "different section in the tool panel." + if original_section_name: + message = "The tools contained in your <b>%s</b> repository were last loaded into the tool panel section <b>%s</b>. " \ + % ( repository.name, original_section_name ) + message += "Uncheck the <b>No changes</b> check box and select a different tool panel section to load the tools in a " + message += "different section in the tool panel." + else: + message = "The tools contained in your <b>%s</b> repository were last loaded into the tool panel outside of any sections. " % repository.name + message += "Uncheck the <b>No changes</b> check box and select a tool panel section to load the tools into that section." status = 'done' return trans.fill_template( '/admin/tool_shed_repository/reselect_tool_panel_section.mako', repository=repository, diff -r 60231c4aab751817fc3937c1974e3fc11632df2e -r 23b173247757c383e9f1c4fb736008a6623e7327 templates/admin/tool_shed_repository/reselect_tool_panel_section.mako --- a/templates/admin/tool_shed_repository/reselect_tool_panel_section.mako +++ b/templates/admin/tool_shed_repository/reselect_tool_panel_section.mako @@ -20,7 +20,7 @@ <label>Add new tool panel section:</label><input name="new_tool_panel_section" type="textfield" value="" size="40"/><div class="toolParamHelp" style="clear: both;"> - Add a new tool panel section contain the installed tools (optional). + Add a new tool panel section to contain the installed tools (optional). </div></div><div class="form-row"> diff -r 60231c4aab751817fc3937c1974e3fc11632df2e -r 23b173247757c383e9f1c4fb736008a6623e7327 templates/admin/tool_shed_repository/select_tool_panel_section.mako --- a/templates/admin/tool_shed_repository/select_tool_panel_section.mako +++ b/templates/admin/tool_shed_repository/select_tool_panel_section.mako @@ -43,7 +43,7 @@ <label>Add new tool panel section:</label><input name="new_tool_panel_section" type="textfield" value="${new_tool_panel_section}" size="40"/><div class="toolParamHelp" style="clear: both;"> - Add a new tool panel section contain the installed tools (optional). + Add a new tool panel section to contain the installed tools (optional). </div></div><div class="form-row"> 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