Merge pull request #3139 from natefoo/message-box-bool

Treat the value of `message_box_visible` in galaxy.ini as a boolean
This commit is contained in:
Martin Cech
2016-11-08 12:07:13 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ class Configuration( object ):
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' )
+1 -1
View File
@@ -40,7 +40,7 @@ class Configuration( object ):
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/' )
+1 -1
View File
@@ -110,7 +110,7 @@ class Configuration( object ):
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' )