Commits

Greg Von Kuster committed c2a2ae7 Draft

Fix for generating ToolSectionLabels in the integrated_tool_panel.xml file.

  • Participants
  • Parent commits 5a6ec71

Comments (0)

Files changed (2)

File lib/galaxy/tool_shed/install_manager.py

 """
-Manage automatic installation of tools configured in tool_shed_install.xml, all of which were
-at some point included in the Galaxy distribution, but are now hosted in the main Galaxy tool
-shed.  Tools included in tool_shed_install.xml that have already been installed will not be
-re-installed.
+Manage automatic installation of tools configured in the xxx.xml files in ~/scripts/migrate_tools (e.g., 0002_tools.xml).
+All of the tools were at some point included in the Galaxy distribution, but are now hosted in the main Galaxy tool shed.
 """
 import logging, urllib2
 from galaxy.tools import ToolSection
 class InstallManager( object ):
     def __init__( self, app, latest_migration_script_number, tool_shed_install_config, migrated_tools_config ):
         """
-        Check tool settings in tool_shed_install_config and install all tools that are not already installed.  The tool panel
-        configuration file is the received migrated_tools_config, which is the reserved file named migrated_tools_conf.xml.
+        Check tool settings in tool_shed_install_config and install all repositories that are not already installed.  The tool
+        panel configuration file is the received migrated_tools_config, which is the reserved file named migrated_tools_conf.xml.
         """
         self.app = app
         self.toolbox = self.app.toolbox

File lib/galaxy/tools/__init__.py

                         if section_item:
                             os.write( fd, '        <workflow id="%s" />\n' % section_item.id )
                     elif section_key.startswith( 'label_' ):
+                        label_id = section_item.id or ''
+                        label_text = section_item.text or ''
+                        label_version = section_item.version or ''
                         os.write( fd, '        <label id="%s" text="%s" version="%s" />\n' % ( label_id, label_text, label_version ) )
                 os.write( fd, '    </section>\n' )
         os.write( fd, '</toolbox>\n' )