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}
def html(self): from adfd.site.controller import NAV return NAV.replace_links(self._rawHtml)