Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 477:fac8e8bc9a1a
browser side: changed default avatar
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 12 Jun 2014 22:32:33 +0200 |
parents | 830b50593597 |
children | 992b900ab876 |
comparison
equal
deleted
inserted
replaced
476:d6daa00ba564 | 477:fac8e8bc9a1a |
---|---|
260 # The jid is maybe not in our roster, we ask for the VCard | 260 # The jid is maybe not in our roster, we ask for the VCard |
261 self.bridge.call("getCard", None, jid_str) | 261 self.bridge.call("getCard", None, jid_str) |
262 | 262 |
263 if jid_str not in self.avatars_cache: | 263 if jid_str not in self.avatars_cache: |
264 self.bridge.call('getEntityData', (dataReceived, avatarError), jid_str, ['avatar']) | 264 self.bridge.call('getEntityData', (dataReceived, avatarError), jid_str, ['avatar']) |
265 self.avatars_cache[jid_str] = "/media/icons/tango/emotes/64/face-plain.png" | 265 self.avatars_cache[jid_str] = C.DEFAULT_AVATAR |
266 return self.avatars_cache[jid_str] | 266 return self.avatars_cache[jid_str] |
267 | 267 |
268 def registerWidget(self, wid): | 268 def registerWidget(self, wid): |
269 log.debug("Registering %s" % wid.getDebugName()) | 269 log.debug("Registering %s" % wid.getDebugName()) |
270 self.libervia_widgets.add(wid) | 270 self.libervia_widgets.add(wid) |