fix pylint violations

This commit is contained in:
Chris Dodge
2013-08-15 12:48:01 -04:00
parent ed584a9abb
commit cf715cb727
3 changed files with 16 additions and 2 deletions

View File

@@ -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)

View File

@@ -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):

View File

@@ -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': {