Commit cf715cb7 by Chris Dodge

fix pylint violations

parent ed584a9a
...@@ -102,7 +102,11 @@ class StaticContent(object): ...@@ -102,7 +102,11 @@ class StaticContent(object):
@staticmethod @staticmethod
def convert_legacy_static_url_with_course_id(path, course_id): 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) loc = StaticContent.compute_location(org, course_num, path)
return StaticContent.get_url_path_from_location(loc) return StaticContent.get_url_path_from_location(loc)
......
...@@ -457,10 +457,16 @@ class ModuleStoreBase(ModuleStore): ...@@ -457,10 +457,16 @@ class ModuleStoreBase(ModuleStore):
@property @property
def metadata_inheritance_cache_subsystem(self): 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) return self.modulestore_configuration.get('metadata_inheritance_cache_subsystem', None)
@property @property
def request_cache(self): def request_cache(self):
"""
Exposes an accessor to the runtime configuration for the request cache
"""
return self.modulestore_configuration.get('request_cache', None) return self.modulestore_configuration.get('request_cache', None)
def set_modulestore_configuration(self, config_dict): def set_modulestore_configuration(self, config_dict):
......
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
This configuration is to run the MixedModuleStore on a localdev environment 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 = { MODULESTORE = {
'default': { 'default': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment