Mercurial > libervia-web
changeset 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 | 7113d40533d6 |
children | 8da4735a3c81 |
files | src/browser/sat_browser/blog.py src/browser/sat_browser/contact_list.py src/browser/sat_browser/dialog.py |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py Mon Feb 23 18:47:27 2015 +0100 +++ b/src/browser/sat_browser/blog.py Tue Feb 24 14:40:47 2015 +0100 @@ -390,11 +390,12 @@ quick_widgets.QuickWidget.onDelete(self) self.host.removeListener('avatar', self.avatarListener) - def onAvatarUpdate(self, jid_, hash_): + def onAvatarUpdate(self, jid_, hash_, profile): """Called on avatar update events @param jid_: jid of the entity with updated avatar @param hash_: hash of the avatar + @param profile: %(doc_profile)s """ whoami = self.host.profiles[self.profile].whoami if self.isJidAccepted(jid_) or jid_.bare == whoami.bare:
--- a/src/browser/sat_browser/contact_list.py Mon Feb 23 18:47:27 2015 +0100 +++ b/src/browser/sat_browser/contact_list.py Tue Feb 24 14:40:47 2015 +0100 @@ -562,11 +562,12 @@ """ self._contacts_panel.updateAvatar(jid_s, url) - def onAvatarUpdate(self, jid_, hash_): + def onAvatarUpdate(self, jid_, hash_, profile): """Called on avatar update events @param jid_: jid of the entity with updated avatar @param hash_: hash of the avatar + @param profile: %(doc_profile)s """ self._contacts_panel.updateAvatar(jid_, self.host.getAvatarURL(jid_))
--- a/src/browser/sat_browser/dialog.py Mon Feb 23 18:47:27 2015 +0100 +++ b/src/browser/sat_browser/dialog.py Tue Feb 24 14:40:47 2015 +0100 @@ -254,7 +254,7 @@ suffix = "" if (visible or not self.contacts) else ": %s" % ", ".join([unicode(contact) for contact in self.contacts]) sender.setStackText(1, self.title_invite + suffix) - def refreshContactList(self, *args): + def refreshContactList(self, *args, **kwargs): """Called when someone log in/out to update the list. @param args: set by the event call but not used here