Mercurial > libervia-web
diff src/server/blog.py @ 899:bc3a3e804a7a
blog(atom): added categories (tags) in Atom feed
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 24 Mar 2016 19:43:17 +0100 |
parents | 2d15b484ca33 |
children | f82b97d9ca5f |
line wrap: on
line diff
--- a/src/server/blog.py Tue Mar 22 22:45:39 2016 +0100 +++ b/src/server/blog.py Thu Mar 24 19:43:17 2016 +0100 @@ -503,6 +503,11 @@ except KeyError: pass + # categories + for tag in data_format.dict2iter("tag", item): + category_elt = entry_elt.addElement(u"category") + category_elt["term"] = tag + # content try: content_xhtml = item['content_xhtml']