# HG changeset patch # User Goffi # Date 1458236535 -3600 # Node ID dc27e29b7c2244698d689f32c00674a9aafcd08f # Parent 2b091322c6cb97aadad273a86392e6ef174ada2c blog (atom feed): fixed forgotten content keyword, resulting in content published as namespace diff -r 2b091322c6cb -r dc27e29b7c22 src/server/blog.py --- 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