Mercurial > libervia-backend
diff src/plugins/plugin_xep_0060.py @ 1367:f71a0fc26886
merged branch frontends_multi_profiles
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 18 Mar 2015 10:52:28 +0100 |
parents | 74d558e6c9fd faa1129559b8 |
children | 069ad98b360d |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py Thu Feb 05 11:59:26 2015 +0100 +++ b/src/plugins/plugin_xep_0060.py Wed Mar 18 10:52:28 2015 +0100 @@ -55,7 +55,7 @@ OPT_PUBLISH_MODEL = 'pubsub#publish_model' def __init__(self, host): - log.info(_("PubSub plugin initialization")) + log.info(_(u"PubSub plugin initialization")) self.host = host self.managedNodes = [] self.clients = {} @@ -202,7 +202,7 @@ d_dict = {} for publisher, node in data.items(): if node not in found_nodes: - log.debug("Skip the items retrieval for [{node}]: node doesn't exist".format(node=node)) + log.debug(u"Skip the items retrieval for [{node}]: node doesn't exist".format(node=node)) continue # avoid pubsub "item-not-found" error d_dict[publisher] = self.getItems(service, node, max_items, None, sub_id, rsm, profile) defer.returnValue(d_dict) @@ -248,7 +248,7 @@ d_list = [] for nodeIdentifier in (set(nodeIdentifiers) - set(subscribed_nodes)): if nodeIdentifier not in found_nodes: - log.debug("Skip the subscription to [{node}]: node doesn't exist".format(node=nodeIdentifier)) + log.debug(u"Skip the subscription to [{node}]: node doesn't exist".format(node=nodeIdentifier)) continue # avoid sat-pubsub "SubscriptionExists" error d_list.append(client.subscribe(service, nodeIdentifier, sub_jid or client.parent.jid.userhostJID(), options=options)) defer.returnValue(d_list) @@ -278,7 +278,7 @@ def deleteReceived(self, event): #TODO: manage delete event - log.debug(_("Publish node deleted")) + log.debug(_(u"Publish node deleted")) # def purgeReceived(self, event):