Merge pull request #8395 from jazkarta/ccx-custom-ids
MIT CCX: Use CCX Keys
This commit is contained in:
@@ -193,6 +193,15 @@ def modulestore():
|
||||
settings.MODULESTORE['default'].get('OPTIONS', {})
|
||||
)
|
||||
|
||||
if settings.FEATURES.get('CUSTOM_COURSES_EDX'):
|
||||
# TODO: This import prevents a circular import issue, but is
|
||||
# symptomatic of a lib having a dependency on code in lms. This
|
||||
# should be updated to have a setting that enumerates modulestore
|
||||
# wrappers and then uses that setting to wrap the modulestore in
|
||||
# appropriate wrappers depending on enabled features.
|
||||
from ccx.modulestore import CCXModulestoreWrapper # pylint: disable=import-error
|
||||
_MIXED_MODULESTORE = CCXModulestoreWrapper(_MIXED_MODULESTORE)
|
||||
|
||||
return _MIXED_MODULESTORE
|
||||
|
||||
|
||||
|
||||
@@ -72,6 +72,9 @@ class CachingDescriptorSystem(MakoDescriptorSystem, EditInfoRuntimeMixin):
|
||||
)
|
||||
self.modulestore = modulestore
|
||||
self.course_entry = course_entry
|
||||
# set course_id attribute to avoid problems with subsystems that expect
|
||||
# it here. (grading, for example)
|
||||
self.course_id = course_entry.course_key
|
||||
self.lazy = lazy
|
||||
self.module_data = module_data
|
||||
self.default_class = default_class
|
||||
|
||||
Reference in New Issue
Block a user