Skip to content

Commit

Permalink
Add regular attribute to config parser
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 11, 2018
1 parent b16c602 commit 39c0eb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/galaxy/visualization/plugins/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def parse_visualization(self, xml_tree):
# a text display name for end user links
returned['name'] = xml_tree.attrib.get('name', None)
if not returned['name']:
raise ParsingException('visualization needs a name attribute')
raise ParsingException('Visualization needs a name attribute.')

# a regular visualization for a certain datatype is highlighted in the ui
returned['regular'] = xml_tree.get('regular', False)

# allow manually turning off a vis by checking for a disabled property
if 'disabled' in xml_tree.attrib:
Expand Down

0 comments on commit 39c0eb3

Please sign in to comment.