From d7dbced8e64265625bdd47db8780157a2eefe624 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 2 Jul 2012 11:25:21 -0400 Subject: [PATCH] Store the top level course in the XMLModuleStore (since there is only one course per module store --- common/lib/xmodule/modulestore/xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/modulestore/xml.py b/common/lib/xmodule/modulestore/xml.py index eb23de2e46..d4e90d59a4 100644 --- a/common/lib/xmodule/modulestore/xml.py +++ b/common/lib/xmodule/modulestore/xml.py @@ -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): """