Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0060.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 | fcfec24c87f3 |
children | c2d96f74105e |
comparison
equal
deleted
inserted
replaced
1551:591c32dbfb0b | 1552:e0bde0d0b321 |
---|---|
94 return client.pubsub_client | 94 return client.pubsub_client |
95 | 95 |
96 @defer.inlineCallbacks | 96 @defer.inlineCallbacks |
97 def profileConnected(self, profile): | 97 def profileConnected(self, profile): |
98 client = self.host.getClient(profile) | 98 client = self.host.getClient(profile) |
99 pubsub_services = yield self.host.findServiceEntities("pubsub", "service", profile_key = profile) | 99 pubsub_services = yield self.host.findServiceEntities("pubsub", "service", profile=profile) |
100 if pubsub_services: | 100 if pubsub_services: |
101 # we use one of the found services as our default pubsub service | 101 # we use one of the found services as our default pubsub service |
102 client.pubsub_service = pubsub_services.pop() | 102 client.pubsub_service = pubsub_services.pop() |
103 else: | 103 else: |
104 client.pubsub_service = None | 104 client.pubsub_service = None |