Mercurial > libervia-web
comparison src/browser/sat_browser/blog.py @ 638:63697f082e8a frontends_multi_profiles
browser side: fixed use of profile for listeners
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 24 Feb 2015 14:40:47 +0100 |
parents | 9092e624bb27 |
children | 6d3142b782c3 |
comparison
equal
deleted
inserted
replaced
637:7113d40533d6 | 638:63697f082e8a |
---|---|
388 | 388 |
389 def onDelete(self): | 389 def onDelete(self): |
390 quick_widgets.QuickWidget.onDelete(self) | 390 quick_widgets.QuickWidget.onDelete(self) |
391 self.host.removeListener('avatar', self.avatarListener) | 391 self.host.removeListener('avatar', self.avatarListener) |
392 | 392 |
393 def onAvatarUpdate(self, jid_, hash_): | 393 def onAvatarUpdate(self, jid_, hash_, profile): |
394 """Called on avatar update events | 394 """Called on avatar update events |
395 | 395 |
396 @param jid_: jid of the entity with updated avatar | 396 @param jid_: jid of the entity with updated avatar |
397 @param hash_: hash of the avatar | 397 @param hash_: hash of the avatar |
398 @param profile: %(doc_profile)s | |
398 """ | 399 """ |
399 whoami = self.host.profiles[self.profile].whoami | 400 whoami = self.host.profiles[self.profile].whoami |
400 if self.isJidAccepted(jid_) or jid_.bare == whoami.bare: | 401 if self.isJidAccepted(jid_) or jid_.bare == whoami.bare: |
401 self.updateValue('avatar', jid_, hash_) | 402 self.updateValue('avatar', jid_, hash_) |
402 | 403 |