comparison src/plugins/plugin_misc_groupblog.py @ 1182:4be53c14845e

plugin groupblog: fixes return value of getLastGroupBlogsAtom when an error occured
author souliane <souliane@mailoo.org>
date Mon, 08 Sep 2014 16:53:41 +0200
parents 301b342c697a
children 318eab3f93f8
comparison
equal deleted inserted replaced
1181:ca8ce5a47969 1182:4be53c14845e
610 def initialised(result): 610 def initialised(result):
611 profile, client = result 611 profile, client = result
612 d = self.host.plugins["XEP-0060"].getItems(client.item_access_pubsub, self.getNodeName(pub_jid), 612 d = self.host.plugins["XEP-0060"].getItems(client.item_access_pubsub, self.getNodeName(pub_jid),
613 max_items=max_items, profile_key=profile_key) 613 max_items=max_items, profile_key=profile_key)
614 d.addCallback(items2feed, pub_jid, client) 614 d.addCallback(items2feed, pub_jid, client)
615 d.addErrback(lambda ignore: {}) # TODO: more complete error management (log !) 615 d.addErrback(lambda ignore: '') # TODO: more complete error management (log !)
616 return d 616 return d
617 617
618 #TODO: we need to use the server corresponding the the host of the jid 618 #TODO: we need to use the server corresponding the the host of the jid
619 return self._initialise(profile_key).addCallback(initialised) 619 return self._initialise(profile_key).addCallback(initialised)
620 620