diff src/browser/libervia_main.py @ 479:c21ea1fe3593

browser side: small refactoring to prepare displaying avatars in the contact panel
author souliane <souliane@mailoo.org>
date Sat, 14 Jun 2014 19:10:51 +0200
parents 992b900ab876
children 50b286866739
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Thu Jun 12 22:37:22 2014 +0200
+++ b/src/browser/libervia_main.py	Sat Jun 14 19:10:51 2014 +0200
@@ -249,7 +249,11 @@
         return True
 
     def getAvatar(self, jid_str):
-        """Return avatar of a jid if in cache, else ask for it"""
+        """Return avatar of a jid if in cache, else ask for it.
+
+        @param jid_str (str): JID of the contact
+        @return: the URL to the avatar (str)
+        """
         def dataReceived(result):
             if 'avatar' in result:
                 self._entityDataUpdatedCb(jid_str, 'avatar', result['avatar'])