commit/galaxy-central: jgoecks: Fix for displaying tools outside of a section.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/5b1ba14edd15/ changeset: 5b1ba14edd15 user: jgoecks date: 2012-04-16 18:28:52 summary: Fix for displaying tools outside of a section. affected #: 1 file diff -r a471c61f91dc98d1c668e3718b3843422f5e77aa -r 5b1ba14edd15720509b8842e7b5ea78823af3f07 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -565,7 +565,7 @@ # Produce panel. rval = [] for elt in panel_elts: - rval.append( elt.to_dict( trans ) ) + rval.append( elt.to_dict( trans, for_link=True ) ) else: tools = [] for id, tool in self.app.toolbox.tools_by_id.items(): @@ -594,11 +594,11 @@ copy.elems = self.elems.copy() return copy - def to_dict( self, trans ): + def to_dict( self, trans, for_link=False ): """ Return a dict that includes section's attributes. """ section_elts = [] for key, val in self.elems.items(): - section_elts.append( val.to_dict( trans, for_link=True ) ) + section_elts.append( val.to_dict( trans, for_link=for_link ) ) return { 'type': 'section', 'id': self.id, 'name': self.name, 'version': self.version, 'elems': section_elts } class ToolSectionLabel( object ): 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