From 1ae71313bc3fc825bf3e1f8687d4a8b40e9681c1 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Thu, 16 Aug 2012 16:53:29 -0400 Subject: [PATCH] fix html rendering bug --- common/lib/xmodule/xmodule/html_module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/html_module.py b/common/lib/xmodule/xmodule/html_module.py index 5e7c1f7e3f..171a021856 100644 --- a/common/lib/xmodule/xmodule/html_module.py +++ b/common/lib/xmodule/xmodule/html_module.py @@ -73,7 +73,9 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor): cls.clean_metadata_from_xml(definition_xml) return {'data': stringify_children(definition_xml)} else: - filepath = cls._format_filepath(xml_object.tag, filename) + # html is special. cls.filename_extension is 'xml', but if 'filename' is in the definition, + # that means to load from .html + filepath = "{category}/{name}.html".format(category='html', name=filename) # VS[compat] # TODO (cpennington): If the file doesn't exist at the right path,