Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0065.py @ 2148:a543eda2c923
core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 20:43:20 +0100 |
parents | 33c8c4973743 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2147:bca699faf416 | 2148:a543eda2c923 |
---|---|
768 try: | 768 try: |
769 defer.returnValue(self._cache_proxies[server]) | 769 defer.returnValue(self._cache_proxies[server]) |
770 except KeyError: | 770 except KeyError: |
771 pass | 771 pass |
772 try: | 772 try: |
773 proxy = (yield self.host.findServiceEntities('proxy', 'bytestreams', profile=profile)).pop() | 773 proxy = (yield self.host.findServiceEntities(client, 'proxy', 'bytestreams')).pop() |
774 except (defer.CancelledError, StopIteration): | 774 except (defer.CancelledError, StopIteration): |
775 notFound(server) | 775 notFound(server) |
776 iq_elt = client.IQ('get') | 776 iq_elt = client.IQ('get') |
777 iq_elt['to'] = proxy.full() | 777 iq_elt['to'] = proxy.full() |
778 iq_elt.addElement((NS_BS, 'query')) | 778 iq_elt.addElement((NS_BS, 'query')) |