# HG changeset patch # User Goffi # Date 1424785247 -3600 # Node ID 63697f082e8af53b3103e06a909e3bde49d39793 # Parent 7113d40533d65eb377bb9abfccdfa55c0c1aef9a browser side: fixed use of profile for listeners diff -r 7113d40533d6 -r 63697f082e8a src/browser/sat_browser/blog.py --- 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: diff -r 7113d40533d6 -r 63697f082e8a src/browser/sat_browser/contact_list.py --- 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_)) diff -r 7113d40533d6 -r 63697f082e8a src/browser/sat_browser/dialog.py --- 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