commit/galaxy-central: greg: Keep empty sections in the tool panel when deactivating / uninstalling a repository with tools.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/6fe4166160f3/ changeset: 6fe4166160f3 user: greg date: 2012-03-02 21:37:35 summary: Keep empty sections in the tool panel when deactivating / uninstalling a repository with tools. affected #: 1 file diff -r 250bbb04b5a4539010100cd56191fbb32c4242a5 -r 6fe4166160f331e99b9d7e799587e0ed95ac9ed4 lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -1002,10 +1002,10 @@ if section_key in trans.app.toolbox.tool_panel: tool_section = trans.app.toolbox.tool_panel[ section_key ] tool_key = key = 'tool_%s' % str( tool_elem.get( 'guid' ) ) + # Remove empty sections only from the in-memory config_elems, but leave + # the in-memory tool panel alone. if tool_key in tool_section.elems: del tool_section.elems[ tool_key ] - if not tool_section.elems: - del trans.app.toolbox.tool_panel[ section_key ] if len( config_elem ) < 1: # Keep a list of all empty section elements so they can be removed. config_elems_to_remove.append( config_elem ) 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