Mercurial > libervia-backend
comparison src/plugins/plugin_misc_groupblog.py @ 1281:1c90a913fbb9
plugin groupblog: fixes bad errback value
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 09 Jan 2015 10:44:37 +0100 |
parents | bb30bf3ae932 |
children | 8aa4dab01206 |
comparison
equal
deleted
inserted
replaced
1280:806a0fb6045e | 1281:1c90a913fbb9 |
---|---|
648 return feed + "</feed>" | 648 return feed + "</feed>" |
649 | 649 |
650 def cb(items, client): | 650 def cb(items, client): |
651 return items2feed(items, pub_jid, client) | 651 return items2feed(items, pub_jid, client) |
652 | 652 |
653 d = DeferredItems(self, cb, lambda dummy: '', profile_key).get(self.getNodeName(pub_jid), rsm=rsm) | 653 d = DeferredItems(self, cb, lambda dummy: [''], profile_key).get(self.getNodeName(pub_jid), rsm=rsm) |
654 return d.addCallback(lambda res: res[0]) | 654 return d.addCallback(lambda res: res[0]) |
655 | 655 |
656 def getGroupBlogComments(self, service_s, node, rsm=None, profile_key=C.PROF_KEY_NONE): | 656 def getGroupBlogComments(self, service_s, node, rsm=None, profile_key=C.PROF_KEY_NONE): |
657 """Get all comments of given node | 657 """Get all comments of given node |
658 @param service_s: service hosting the node | 658 @param service_s: service hosting the node |