diff frontends/src/quick_frontend/quick_contact_list.py @ 1000:6f1e03068b5f

primitivus: fixes contact group update
author souliane <souliane@mailoo.org>
date Sun, 27 Apr 2014 18:22:12 +0200
parents 1fe00f0c9a91
children d1084f7e56a5
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py	Fri Apr 11 11:02:42 2014 +0200
+++ b/frontends/src/quick_frontend/quick_contact_list.py	Sun Apr 27 18:22:12 2014 +0200
@@ -54,7 +54,14 @@
         self.specials.clear()
 
     def replace(self, jid, groups=None, attributes=None):
-        """add a contact to the list if doesn't exist, else update it"""
+        """Add a contact to the list if doesn't exist, else update it.
+
+        @param jid (JID)
+        @param groups (list): list of groups or None to ignore the groups membership.
+        @param attributes (dict)
+
+        XXX: None value for 'groups' has a different meaning than [None] which is for the default group.
+        """
         if attributes and 'name' in attributes:
             self.setCache(jid, 'name', attributes['name'])