changeset 890:dc27e29b7c22

blog (atom feed): fixed forgotten content keyword, resulting in content published as namespace
author Goffi <goffi@goffi.org>
date Thu, 17 Mar 2016 18:42:15 +0100
parents 2b091322c6cb
children 14e611e38b67
files src/server/blog.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Thu Mar 17 18:42:15 2016 +0100
+++ b/src/server/blog.py	Thu Mar 17 18:42:15 2016 +0100
@@ -454,7 +454,7 @@
             feed_elt.addElement('id', content=_quote(blog_xmpp_uri))
             updated_unix = max([float(item['updated']) for item in items])
             updated_dt = datetime.fromtimestamp(updated_unix)
-            feed_elt.addElement(u'updated', u'{}Z'.format(updated_dt.isoformat("T")))
+            feed_elt.addElement(u'updated', content=u'{}Z'.format(updated_dt.isoformat("T")))
 
             for item in items:
                 entry_elt = feed_elt.addElement(u'entry')
@@ -481,19 +481,19 @@
                 # date metadata
                 entry_elt.addElement(u'id', content=item['atom_id'])
                 updated = datetime.fromtimestamp(float(item['updated']))
-                entry_elt.addElement(u'updated', u'{}Z'.format(updated.isoformat("T")))
+                entry_elt.addElement(u'updated', content=u'{}Z'.format(updated.isoformat("T")))
                 published = datetime.fromtimestamp(float(item['published']))
-                entry_elt.addElement(u'published', u'{}Z'.format(published.isoformat("T")))
+                entry_elt.addElement(u'published', content=u'{}Z'.format(published.isoformat("T")))
 
                 # author metadata
                 author_elt = entry_elt.addElement(u'author')
-                author_elt.addElement('name', item.get('author', profile))
+                author_elt.addElement('name', content=item.get('author', profile))
                 try:
-                    author_elt.addElement('uri', u'xmpp:{}'.format(item['author_jid']))
+                    author_elt.addElement('uri', content=u'xmpp:{}'.format(item['author_jid']))
                 except KeyError:
                     pass
                 try:
-                    author_elt.addElement('email', item['author_email'])
+                    author_elt.addElement('email', content=item['author_email'])
                 except KeyError:
                     pass