Store the top level course in the XMLModuleStore (since there is only one course per module store

This commit is contained in:
Calen Pennington
2012-07-02 11:25:21 -04:00
parent 85f294b3e3
commit d7dbced8e6

View File

@@ -75,7 +75,7 @@ class XMLModuleStore(ModuleStore):
XMLParsingSystem.__init__(self, modulestore.get_item, OSFS(data_dir), process_xml)
ImportSystem(self).process_xml(course_file.read())
self.course = ImportSystem(self).process_xml(course_file.read())
def get_item(self, location):
"""