Mercurial > libervia-backend
diff src/plugins/plugin_misc_groupblog.py @ 1552:e0bde0d0b321
core (disco): use of “profile” instead of “profile_key” in several disco methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Nov 2015 22:02:41 +0100 |
parents | afa0894dcc71 |
children | 9aa2a703e460 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_groupblog.py Mon Nov 02 22:02:41 2015 +0100 +++ b/src/plugins/plugin_misc_groupblog.py Mon Nov 02 22:02:41 2015 +0100 @@ -23,7 +23,7 @@ log = getLogger(__name__) from twisted.internet import defer from twisted.words.protocols.jabber import jid -from twisted.words.xish.domish import Element, generateElementsNamed +from twisted.words.xish.domish import generateElementsNamed from sat.core import exceptions from wokkel import disco, data_form, iwokkel from wokkel import rsm @@ -140,7 +140,7 @@ def profileConnected(self, profile): client = self.host.getClient(profile) try: - yield self.host.checkFeatures((NS_PUBSUB_GROUPBLOG, NS_PUBSUB_AUTO_CREATE), profile_key=profile) + yield self.host.checkFeatures((NS_PUBSUB_GROUPBLOG, NS_PUBSUB_AUTO_CREATE), profile=profile) except exceptions.FeatureNotFound: client.server_groupblog_available = False log.warning(_(u"Server is not able to manage item-access pubsub, we can't use group blog")) @@ -177,7 +177,7 @@ if not hasattr(client, "item_access_pubsub"): log.debug(_('Looking for item-access powered pubsub server')) #we don't have any pubsub server featuring item access yet - item_access_pubsubs = yield self.host.findFeaturesSet((NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK), "pubsub", "service", profile_key=profile) + item_access_pubsubs = yield self.host.findFeaturesSet((NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK), "pubsub", "service", profile=profile) # item_access_pubsubs = yield self.host.findFeaturesSet((NS_PUBSUB_ITEM_ACCESS, NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK), "pubsub", "service", profile_key=profile) try: client.item_access_pubsub = item_access_pubsubs.pop()