diff src/browser/sat_browser/contact_list.py @ 606:7af8f4ab3675 frontends_multi_profiles

browser side: fixed avatar getting + better DEFAULT/EMPTY avatars constants + use of jid.JID for microblog's author
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:55:16 +0100
parents 32dbbc941123
children 537649f6a2d0
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Mon Feb 09 21:46:15 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Mon Feb 09 21:55:16 2015 +0100
@@ -113,7 +113,7 @@
 
     @classmethod
     def getCategoryHTML(cls, menu_name_i18n, type_):
-        return '<img src="%s"/>' % C.DEFAULT_AVATAR
+        return '<img src="%s"/>' % C.DEFAULT_AVATAR_URL
 
     def setUrl(self, url):
         """Set the URL of the contact avatar."""
@@ -128,7 +128,7 @@
         self.jid = jid_
         self.label = ContactLabel(jid_, name)
         self.avatar = ContactMenuBar(self, host) if handle_menu else Image()
-        # self.updateAvatar(host.getAvatar(jid_)) # FIXME
+        self.updateAvatar(host.getAvatarURL(jid_))
         self.add(self.avatar)
         self.add(self.label)
         if click_listener: