comparison sat/plugins/plugin_xep_0231.py @ 2765:378188abe941

misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 11:13:15 +0100
parents 56f94936df1e
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
159 else: 159 else:
160 # cid not found locally, we need to request it 160 # cid not found locally, we need to request it
161 # so we use the deferred 161 # so we use the deferred
162 d = self.requestData(client, jid.JID(message_elt["from"]), cid) 162 d = self.requestData(client, jid.JID(message_elt["from"]), cid)
163 d.addCallback(partial(self._setImgEltSrc, img_elt=img_elt)) 163 d.addCallback(partial(self._setImgEltSrc, img_elt=img_elt))
164 treat_d.addCallback(lambda dummy: d) 164 treat_d.addCallback(lambda __: d)
165 165
166 def onComponentRequest(self, iq_elt, client): 166 def onComponentRequest(self, iq_elt, client):
167 """cache data is retrieve from common cache for components""" 167 """cache data is retrieve from common cache for components"""
168 # FIXME: this is a security/privacy issue as no access check is done 168 # FIXME: this is a security/privacy issue as no access check is done
169 # but this is mitigated by the fact that the cid must be known. 169 # but this is mitigated by the fact that the cid must be known.