From 948c569dfe2ad3b5c153ab4140d8c5e5dda112d4 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 29 Aug 2016 01:21:45 +0200 Subject: [PATCH] quick frontend(QuickApp): added getDefaultAvatar method: this method (not implemented in quick frontend) should facilitate handling of entities without avatar --- frontends/src/quick_frontend/quick_app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index 5b271b6c..92733984 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -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)