Пример #1
0
def path_route():
    if not NAV.isPopulated:
        NAV.populate()
    for path, node in NAV.pathNodeMap.items():
        for prefix in ['', NAME.BBCODE]:
            log.info("yield %s", path)
            yield {'path': path}

            if prefix:
                prefixedPath = "/%s" % NAME.BBCODE
                if path != "/":
                    prefixedPath += path
                log.info("yield %s", prefixedPath)
                yield {'path': prefixedPath}
Пример #2
0
Файл: model.py Проект: ADFD/adfd
 def html(self):
     from adfd.site.controller import NAV
     return NAV.replace_links(self._rawHtml)