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:
Victor Shnayder
2012-07-31 11:24:39 -04:00
parent ed35cefa29
commit 0ae434cc09
7 changed files with 155 additions and 136 deletions

View File

@@ -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