Skip to content

Commit

Permalink
Merge pull request #3139 from natefoo/message-box-bool
Browse files Browse the repository at this point in the history
Treat the value of `message_box_visible` in galaxy.ini as a boolean
  • Loading branch information
martenson committed Nov 8, 2016
2 parents 6a8ca92 + 7bee265 commit 3d69a2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/config.py
Expand Up @@ -279,7 +279,7 @@ def __init__( self, **kwargs ):
self.welcome_url = kwargs.get( 'welcome_url', '/static/welcome.html' )
self.show_welcome_with_login = string_as_bool( kwargs.get( "show_welcome_with_login", "False" ) )
# Configuration for the message box directly below the masthead.
self.message_box_visible = kwargs.get( 'message_box_visible', False )
self.message_box_visible = string_as_bool( kwargs.get( 'message_box_visible', False ) )
self.message_box_content = kwargs.get( 'message_box_content', None )
self.message_box_class = kwargs.get( 'message_box_class', 'info' )
self.support_url = kwargs.get( 'support_url', 'https://wiki.galaxyproject.org/Support' )
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/reports/config.py
Expand Up @@ -40,7 +40,7 @@ def __init__( self, **kwargs ):
self.log_actions = string_as_bool( kwargs.get( 'log_actions', 'False' ) )
self.brand = kwargs.get( 'brand', None )
# Configuration for the message box directly below the masthead.
self.message_box_visible = kwargs.get( 'message_box_visible', False )
self.message_box_visible =string_as_bool( kwargs.get( 'message_box_visible', False ) )
self.message_box_content = kwargs.get( 'message_box_content', None )
self.message_box_class = kwargs.get( 'message_box_class', 'info' )
self.wiki_url = kwargs.get( 'wiki_url', 'https://wiki.galaxyproject.org/' )
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/tool_shed/config.py
Expand Up @@ -110,7 +110,7 @@ def __init__( self, **kwargs ):
self.brand = kwargs.get( 'brand', None )
self.pretty_datetime_format = expand_pretty_datetime_format( kwargs.get( 'pretty_datetime_format', '$locale (UTC)' ) )
# Configuration for the message box directly below the masthead.
self.message_box_visible = kwargs.get( 'message_box_visible', False )
self.message_box_visible = string_as_bool( kwargs.get( 'message_box_visible', False ) )
self.message_box_content = kwargs.get( 'message_box_content', None )
self.message_box_class = kwargs.get( 'message_box_class', 'info' )
self.support_url = kwargs.get( 'support_url', 'https://wiki.galaxyproject.org/Support' )
Expand Down

0 comments on commit 3d69a2d

Please sign in to comment.