Mercurial > libervia-backend
diff frontends/src/wix/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 | 084b52afdceb |
children | 5a6354ff468c |
line wrap: on
line diff
--- a/frontends/src/wix/contact_list.py Fri Apr 11 11:02:42 2014 +0200 +++ b/frontends/src/wix/contact_list.py Sun Apr 27 18:22:12 2014 +0200 @@ -76,6 +76,14 @@ self.replace(jid) def replace(self, contact, groups=None, attributes=None): + """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. + """ debug(_("update %s") % contact) if not self.__find_idx(contact): self.add(contact, groups)