Mercurial > libervia-web
comparison src/server/blog.py @ 894:e4e278255c9a
blog: changed MIME type for xmpp: link, forgotten in rev dc27e29b7c22
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Mar 2016 20:34:21 +0100 |
parents | 298fbe562060 |
children | 5d7bc53a392d |
comparison
equal
deleted
inserted
replaced
893:298fbe562060 | 894:e4e278255c9a |
---|---|
479 http_link_elt['type'] = u'text/html' | 479 http_link_elt['type'] = u'text/html' |
480 http_link_elt['href'] = u'{base}/{quoted_id}'.format(base=base_blog_url, quoted_id=_quote(item['id'])) | 480 http_link_elt['href'] = u'{base}/{quoted_id}'.format(base=base_blog_url, quoted_id=_quote(item['id'])) |
481 # XMPP link | 481 # XMPP link |
482 xmpp_link_elt = entry_elt.addElement(u'link') | 482 xmpp_link_elt = entry_elt.addElement(u'link') |
483 xmpp_link_elt['rel'] = u'alternate' | 483 xmpp_link_elt['rel'] = u'alternate' |
484 xmpp_link_elt['type'] = u'application/xmpp+xml' | 484 xmpp_link_elt['type'] = u'application/atom+xml' |
485 xmpp_link_elt['href'] = u'{blog_uri};item={item_id}'.format(blog_uri=blog_xmpp_uri, item_id=item['id']) | 485 xmpp_link_elt['href'] = u'{blog_uri};item={item_id}'.format(blog_uri=blog_xmpp_uri, item_id=item['id']) |
486 | 486 |
487 # date metadata | 487 # date metadata |
488 entry_elt.addElement(u'id', content=item['atom_id']) | 488 entry_elt.addElement(u'id', content=item['atom_id']) |
489 updated = datetime.fromtimestamp(float(item['updated'])) | 489 updated = datetime.fromtimestamp(float(item['updated'])) |