comparison src/plugins/plugin_xep_0363.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
108 """ 108 """
109 client = self.host.getClient(profile) 109 client = self.host.getClient(profile)
110 try: 110 try:
111 entity = client.http_upload_service 111 entity = client.http_upload_service
112 except AttributeError: 112 except AttributeError:
113 found_entities = yield self.host.findFeaturesSet((NS_HTTP_UPLOAD,), profile=client.profile) 113 found_entities = yield self.host.findFeaturesSet(client, (NS_HTTP_UPLOAD,))
114 try: 114 try:
115 entity = client.http_upload_service = iter(found_entities).next() 115 entity = client.http_upload_service = iter(found_entities).next()
116 except StopIteration: 116 except StopIteration:
117 entity = client.http_upload_service = None 117 entity = client.http_upload_service = None
118 118