Mercurial > libervia-web
diff libervia/server/pages.py @ 1171:469d0de8da0e
pages (blog, u): added atom feed link in "links" template data.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 26 Apr 2019 08:42:27 +0200 |
parents | 97e850e6fae9 |
children | 0f37b65fe7c2 |
line wrap: on
line diff
--- a/libervia/server/pages.py Fri Apr 12 14:12:53 2019 +0200 +++ b/libervia/server/pages.py Fri Apr 26 08:42:27 2019 +0200 @@ -635,9 +635,8 @@ ) def getURLByNames(self, named_path): - """retrieve URL from pages names and arguments + """Retrieve URL from pages names and arguments - @param request(server.Request): request linked to the session @param named_path(list[tuple[unicode, list[unicode]]]): path to the page as a list of tuples of 2 items: - first item is page name @@ -661,11 +660,10 @@ return self.host.checkRedirection(self.vhost_root, u"/".join(path)) def getURLByPath(self, *args): - """generate URL by path + """Generate URL by path this method as a similar effect as getURLByNames, but it is more readable by using SubPage to get pages instead of using tuples - @param request(server.Request): request linked to the session @param *args: path element: - if unicode, will be used as argument - if util.SubPage instance, must be the name of a subpage