comparison libervia.py @ 141:a5e9aa1f9c0c

browser side: fixed avatars
author Goffi <goffi@goffi.org>
date Wed, 21 Nov 2012 23:41:53 +0100
parents b6658f3ac8a0
children d15fbb208ba0
comparison
equal deleted inserted replaced
140:09a512d9a0c0 141:a5e9aa1f9c0c
449 def _newContactCb(self, contact, attributes, groups): 449 def _newContactCb(self, contact, attributes, groups):
450 self.contact_panel.updateContact(contact, attributes, groups) 450 self.contact_panel.updateContact(contact, attributes, groups)
451 451
452 def _entityDataUpdatedCb(self, entity_jid_s, key, value): 452 def _entityDataUpdatedCb(self, entity_jid_s, key, value):
453 if key == "avatar": 453 if key == "avatar":
454 entity_jid_s = value['entity_jid_s']
455 avatar = '/avatars/%s' % value 454 avatar = '/avatars/%s' % value
456 455
457 self.avatars_cache[entity_jid_s] = avatar 456 self.avatars_cache[entity_jid_s] = avatar
458 457
459 for lib_wid in self.libervia_widgets: 458 for lib_wid in self.libervia_widgets: