# HG changeset patch # User Goffi # Date 1472426505 -7200 # Node ID 7bfa97e533ac25d0189b0be8abf6b80b0377f1b0 # Parent ed33cd382bf956c10329ea081253e622c8488e7d quick frontend(QuickApp): added getDefaultAvatar method: this method (not implemented in quick frontend) should facilitate handling of entities without avatar diff -r ed33cd382bf9 -r 7bfa97e533ac frontends/src/quick_frontend/quick_app.py --- 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)