Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_contact_list.py @ 1058:0a9986452bba
frontends: fixes bug with private message introduced with revision 1000 (6f1e03068b5f) + display messages from contacts not in roster
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 29 May 2014 14:34:01 +0200 |
parents | d1084f7e56a5 |
children | 03661d1b216a |
comparison
equal
deleted
inserted
replaced
1057:7ea0215e7092 | 1058:0a9986452bba |
---|---|
55 self.specials.clear() | 55 self.specials.clear() |
56 | 56 |
57 def replace(self, jid, groups=None, attributes=None): | 57 def replace(self, jid, groups=None, attributes=None): |
58 """Add a contact to the list if doesn't exist, else update it. | 58 """Add a contact to the list if doesn't exist, else update it. |
59 | 59 |
60 This method can be called with groups=None for the purpose of updating | |
61 the contact's attributes (e.g. nickname). In that case, the groups | |
62 attribute must not be set to the default group but ignored. If not, | |
63 you may move your contact from its actual group(s) to the default one. | |
64 | |
65 None value for 'groups' has a different meaning than [None] which is for the default group. | |
66 | |
60 @param jid (JID) | 67 @param jid (JID) |
61 @param groups (list): list of groups or None to ignore the groups membership. | 68 @param groups (list): list of groups or None to ignore the groups membership. |
62 @param attributes (dict) | 69 @param attributes (dict) |
63 | |
64 XXX: None value for 'groups' has a different meaning than [None] which is for the default group. | |
65 """ | 70 """ |
66 if attributes and 'name' in attributes: | 71 if attributes and 'name' in attributes: |
67 self.setCache(jid, 'name', attributes['name']) | 72 self.setCache(jid, 'name', attributes['name']) |
68 | 73 |
69 def remove(self, jid): | 74 def remove(self, jid): |