mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #3141 from nsoranzo/followup_on_3139
Fix flake8 linting broken in 7bee2651aa
This commit is contained in:
@@ -356,6 +356,7 @@ lib/galaxy/webapps/galaxy/controllers/tool_runner.py
|
||||
lib/galaxy/webapps/galaxy/controllers/userskeys.py
|
||||
lib/galaxy/webapps/galaxy/__init__.py
|
||||
lib/galaxy/webapps/__init__.py
|
||||
lib/galaxy/webapps/reports/config.py
|
||||
lib/galaxy/webapps/reports/controllers/__init__.py
|
||||
lib/galaxy/webapps/reports/controllers/query.py
|
||||
lib/galaxy/webapps/reports/__init__.py
|
||||
|
||||
@@ -66,6 +66,7 @@ lib/galaxy/web/__init__.py
|
||||
lib/galaxy/webapps/galaxy/api/tours.py
|
||||
lib/galaxy/webapps/galaxy/api/workflows.py
|
||||
lib/galaxy/webapps/galaxy/controllers/userskeys.py
|
||||
lib/galaxy/webapps/reports/config.py
|
||||
lib/galaxy/webapps/reports/__init__.py
|
||||
lib/galaxy/webapps/tool_shed/controllers/user.py
|
||||
lib/galaxy/webapps/tool_shed/__init__.py
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
"""Universe configuration builder."""
|
||||
import sys
|
||||
import os
|
||||
import logging
|
||||
import ConfigParser
|
||||
import os
|
||||
import sys
|
||||
|
||||
from six.moves import configparser
|
||||
|
||||
from galaxy.util import string_as_bool
|
||||
|
||||
log = logging.getLogger( __name__ )
|
||||
@@ -40,7 +42,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 =string_as_bool( 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/' )
|
||||
@@ -52,7 +54,7 @@ class Configuration( object ):
|
||||
self.sentry_dsn = kwargs.get( 'sentry_dsn', None )
|
||||
# Parse global_conf
|
||||
global_conf = kwargs.get( 'global_conf', None )
|
||||
global_conf_parser = ConfigParser.ConfigParser()
|
||||
global_conf_parser = configparser.ConfigParser()
|
||||
if global_conf and "__file__" in global_conf:
|
||||
global_conf_parser.read(global_conf['__file__'])
|
||||
|
||||
@@ -84,7 +86,7 @@ def get_database_engine_options( kwargs ):
|
||||
prefix = "database_engine_option_"
|
||||
prefix_len = len( prefix )
|
||||
rval = {}
|
||||
for key, value in kwargs.iteritems():
|
||||
for key, value in kwargs.items():
|
||||
if key.startswith( prefix ):
|
||||
key = key[prefix_len:]
|
||||
if key in conversions:
|
||||
|
||||
Reference in New Issue
Block a user