fix pylint violations
This commit is contained in:
@@ -102,7 +102,11 @@ class StaticContent(object):
|
||||
|
||||
@staticmethod
|
||||
def convert_legacy_static_url_with_course_id(path, course_id):
|
||||
org, course_num, run = course_id.split("/")
|
||||
"""
|
||||
Returns a path to a piece of static content when we are provided with a filepath and
|
||||
a course_id
|
||||
"""
|
||||
org, course_num, __ = course_id.split("/")
|
||||
loc = StaticContent.compute_location(org, course_num, path)
|
||||
return StaticContent.get_url_path_from_location(loc)
|
||||
|
||||
|
||||
@@ -457,10 +457,16 @@ class ModuleStoreBase(ModuleStore):
|
||||
|
||||
@property
|
||||
def metadata_inheritance_cache_subsystem(self):
|
||||
"""
|
||||
Exposes an accessor to the runtime configuration for the metadata inheritance cache
|
||||
"""
|
||||
return self.modulestore_configuration.get('metadata_inheritance_cache_subsystem', None)
|
||||
|
||||
@property
|
||||
def request_cache(self):
|
||||
"""
|
||||
Exposes an accessor to the runtime configuration for the request cache
|
||||
"""
|
||||
return self.modulestore_configuration.get('request_cache', None)
|
||||
|
||||
def set_modulestore_configuration(self, config_dict):
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
This configuration is to run the MixedModuleStore on a localdev environment
|
||||
"""
|
||||
|
||||
from .dev import *
|
||||
# We intentionally define lots of variables that aren't used, and
|
||||
# want to import all variables from base settings files
|
||||
# pylint: disable=W0401, W0614
|
||||
|
||||
from .dev import *, DATA_DIR
|
||||
|
||||
MODULESTORE = {
|
||||
'default': {
|
||||
|
||||
Reference in New Issue
Block a user