commit/galaxy-central: greg: Replace None with an empty string when creating tool panel Elements for installed repository tools.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/ebf72cda61e7/ changeset: ebf72cda61e7 user: greg date: 2012-01-30 18:41:17 summary: Replace None with an empty string when creating tool panel Elements for installed repository tools. affected #: 1 file diff -r 8092639dd35b048614cfaa444273a0458b8fa284 -r ebf72cda61e7f28c1f7311d95777902f95776501 lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -284,9 +284,18 @@ owner = get_repository_owner( tmp_url ) if tool_section: root_elem = Element( 'section' ) - root_elem.attrib[ 'name' ] = tool_section.name - root_elem.attrib[ 'id' ] = tool_section.id - root_elem.attrib[ 'version' ] = tool_section.version + if tool_section.name is None: + root_elem.attrib[ 'name' ] = '' + else: + root_elem.attrib[ 'name' ] = tool_section.name + if tool_section.id is None: + root_elem.attrib[ 'id' ] = '' + else: + root_elem.attrib[ 'id' ] = tool_section.id + if tool_section.version is None: + root_elem.attrib[ 'version' ] = '' + else: + root_elem.attrib[ 'version' ] = tool_section.version for repository_tool_tup in repository_tools_tups: tool_file_path, guid, tool = repository_tool_tup if tool_section: 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