initial commit for a mixed module store which can interoperate with both XML and Mongo module stores

This commit is contained in:
Chris Dodge
2013-07-22 10:26:12 -04:00
parent a260115b01
commit 6f11b98b4f
10 changed files with 206 additions and 47 deletions

37
lms/envs/cms/mixed_dev.py Normal file
View File

@@ -0,0 +1,37 @@
"""
This configuration is to run the MixedModuleStore on a localdev environment
"""
from .dev import *
MODULESTORE = {
'default': {
'ENGINE': 'xmodule.modulestore.mixed.MixedModuleStore',
'OPTIONS': {
'mappings': {
'6.002/a/a': 'xml',
'6.002/b/b': 'xml'
},
'stores': {
'xml': {
'ENGINE': 'xmodule.modulestore.xml.XMLModuleStore',
'OPTIONS': {
'data_dir': DATA_DIR,
'default_class': 'xmodule.hidden_module.HiddenDescriptor',
}
},
'default': {
'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore',
'OPTIONS': {
'default_class': 'xmodule.raw_module.RawDescriptor',
'host': 'localhost',
'db': 'xmodule',
'collection': 'modulestore',
'fs_root': DATA_DIR,
'render_template': 'mitxmako.shortcuts.render_to_string',
}
}
},
}
}
}