Mercurial > libervia-backend
changeset 2056:7bfa97e533ac
quick frontend(QuickApp): added getDefaultAvatar method:
this method (not implemented in quick frontend) should facilitate handling of entities without avatar
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 29 Aug 2016 01:21:45 +0200 |
parents | ed33cd382bf9 |
children | a52a6ed7d48f |
files | frontends/src/quick_frontend/quick_app.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Sun Aug 28 21:00:53 2016 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Mon Aug 29 01:21:45 2016 +0200 @@ -829,6 +829,14 @@ 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)