quick frontend(QuickApp): added getDefaultAvatar method:

this method (not implemented in quick frontend) should facilitate handling of entities without avatar
This commit is contained in:
Goffi 2016-08-29 01:21:45 +02:00
commit 948c569dfe

View file

@ -829,6 +829,14 @@ class QuickApp(object):
self.bridge.launchAction(callback_id, data, profile, callback=action_cb, errback=self.dialogFailure)
def getDefaultAvatar(self, entity=None):
"""return default avatar to use with given entity
must be implemented by frontend
@param entity(jid.JID): entity for which a default avatar is needed
"""
raise NotImplementedError
def disconnect(self, profile):
log.info("disconnecting")
self.callListeners('disconnect', profile=profile)