Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
cf715cb7
Commit
cf715cb7
authored
11 years ago
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pylint violations
parent
ed584a9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
common/lib/xmodule/xmodule/contentstore/content.py
+5
-1
common/lib/xmodule/xmodule/modulestore/__init__.py
+6
-0
lms/envs/cms/mixed_dev.py
+5
-1
No files found.
common/lib/xmodule/xmodule/contentstore/content.py
View file @
cf715cb7
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/modulestore/__init__.py
View file @
cf715cb7
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
lms/envs/cms/mixed_dev.py
View file @
cf715cb7
...
@@ -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'
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment