comparison src/plugins/plugin_misc_groupblog.py @ 860:2b98f5631fba

plugin groupblog: bug fix for the atom feed
author souliane <souliane@mailoo.org>
date Mon, 24 Feb 2014 12:21:59 +0100
parents 660b3f5b6c78
children a7b2aacf22ac
comparison
equal deleted inserted replaced
859:64ec04991d9d 860:2b98f5631fba
555 'id': self.getNodeName(pub_jid), 555 'id': self.getNodeName(pub_jid),
556 'date': date.rfc3339.timestamp_from_tf(date.rfc3339.tf_utc())} 556 'date': date.rfc3339.timestamp_from_tf(date.rfc3339.tf_utc())}
557 for item in items: 557 for item in items:
558 entry = item.firstChildElement() 558 entry = item.firstChildElement()
559 removeAllURIs(entry) 559 removeAllURIs(entry)
560 feed += " " + entry.toXml().encode('utf-8') + "\n" 560 feed += " " + entry.toXml() + "\n"
561 return feed + "</feed>" 561 return feed + "</feed>"
562 562
563 def initialised(result): 563 def initialised(result):
564 profile, client = result 564 profile, client = result
565 d = self.host.plugins["XEP-0060"].getItems(client.item_access_pubsub, self.getNodeName(pub_jid), 565 d = self.host.plugins["XEP-0060"].getItems(client.item_access_pubsub, self.getNodeName(pub_jid),