From 7e69c357356613a54f7dde3cce74aa0410aed9ac Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Thu, 16 Aug 2012 17:58:10 -0400 Subject: [PATCH] fix another backcompat html bug --- common/lib/xmodule/xmodule/html_module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/xmodule/xmodule/html_module.py b/common/lib/xmodule/xmodule/html_module.py index 171a021856..c0b82fef90 100644 --- a/common/lib/xmodule/xmodule/html_module.py +++ b/common/lib/xmodule/xmodule/html_module.py @@ -39,6 +39,8 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor): def backcompat_paths(cls, path): if path.endswith('.html.xml'): path = path[:-9] + '.html' # backcompat--look for html instead of xml + if path.endswith('.html.html'): + path = path[:-5] # some people like to include .html in filenames.. candidates = [] while os.sep in path: candidates.append(path)