From c12d265a21ba72d940a57370c5638d62264c6f39 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Mon, 8 Apr 2013 15:00:54 -0400 Subject: [PATCH] calling update_item implicitly already puts the data in definition.data, so we want to make sure we don't end up nesting definition.data.data --- common/lib/xmodule/xmodule/modulestore/xml_importer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/xml_importer.py b/common/lib/xmodule/xmodule/modulestore/xml_importer.py index 3626bc819d..cd84d2199d 100644 --- a/common/lib/xmodule/xmodule/modulestore/xml_importer.py +++ b/common/lib/xmodule/xmodule/modulestore/xml_importer.py @@ -327,10 +327,10 @@ def import_module(module, store, course_data_path, static_content_store, allow_n except Exception, e: logging.exception("failed to rewrite links on {0}. Continuing...".format(module.location)) - if allow_not_found: - store.update_item(module.location, content, allow_not_found=allow_not_found) - else: - store.update_item(module.location, content) + if allow_not_found: + store.update_item(module.location, module_data, allow_not_found=allow_not_found) + else: + store.update_item(module.location, module_data) if hasattr(module, 'children') and module.children != []: store.update_children(module.location, module.children)