From bffec584f7b58f55ca1d564da7a35955e2a2c3eb Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 7 Aug 2013 21:01:14 -0400 Subject: [PATCH] add docstring --- common/lib/xmodule/xmodule/html_module.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/lib/xmodule/xmodule/html_module.py b/common/lib/xmodule/xmodule/html_module.py index ebe74aa4fd..567f5c7eef 100644 --- a/common/lib/xmodule/xmodule/html_module.py +++ b/common/lib/xmodule/xmodule/html_module.py @@ -81,6 +81,10 @@ class HtmlDescriptor(HtmlFields, XmlDescriptor, EditingDescriptor): return candidates + nc def get_context(self): + """ + an override to add in specific rendering context, in this case we need to + add in a base path to our c4x content addressing scheme + """ _context = EditingDescriptor.get_context(self) # Add some specific HTML rendering context when editing HTML modules where we pass # the root /c4x/ url for assets. This allows client-side substitutions to occur.