Move path_to_location out of mongo.py
* also bugfix for load_definition in html_module * a bit of refactoring of Location checking code in mongo.py
This commit is contained in:
@@ -54,7 +54,7 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor):
|
||||
# snippets that will be included in the middle of pages.
|
||||
|
||||
@classmethod
|
||||
def definition_loader(cls, xml_object, system):
|
||||
def load_definition(cls, xml_object, system, location):
|
||||
'''Load a descriptor from the specified xml_object:
|
||||
|
||||
If there is a filename attribute, load it as a string, and
|
||||
|
||||
Reference in New Issue
Block a user