Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
898:2d15b484ca33 | 899:bc3a3e804a7a |
---|---|
501 try: | 501 try: |
502 author_elt.addElement('email', content=item['author_email']) | 502 author_elt.addElement('email', content=item['author_email']) |
503 except KeyError: | 503 except KeyError: |
504 pass | 504 pass |
505 | 505 |
506 # categories | |
507 for tag in data_format.dict2iter("tag", item): | |
508 category_elt = entry_elt.addElement(u"category") | |
509 category_elt["term"] = tag | |
510 | |
506 # content | 511 # content |
507 try: | 512 try: |
508 content_xhtml = item['content_xhtml'] | 513 content_xhtml = item['content_xhtml'] |
509 except KeyError: | 514 except KeyError: |
510 content_elt = entry_elt.addElement('content', content='content') | 515 content_elt = entry_elt.addElement('content', content='content') |