Commit bffec584 by Chris Dodge

add docstring

parent 6db1be6e
...@@ -81,6 +81,10 @@ class HtmlDescriptor(HtmlFields, XmlDescriptor, EditingDescriptor): ...@@ -81,6 +81,10 @@ class HtmlDescriptor(HtmlFields, XmlDescriptor, EditingDescriptor):
return candidates + nc return candidates + nc
def get_context(self): 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) _context = EditingDescriptor.get_context(self)
# Add some specific HTML rendering context when editing HTML modules where we pass # 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. # the root /c4x/ url for assets. This allows client-side substitutions to occur.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment