Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_contact_list.py @ 504:65ecbb473cbb
core, quick frontend, plugin xep-0054, bridge: use of memory's entities data for vcard:
- bridge: new bridge method getEntityData and signal entityDataUpdated
- core: entityDataUpdated signal sent on new string data
- quick frontend: fixed avatars/vcard infos, fixed _replace in quick_contact_list
- plugin xep-0054: dropped updatedValue signal, use entities data instead
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 26 Sep 2012 01:23:56 +0200 |
parents | debcf5dd404a |
children | 886754295efe |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py Wed Sep 26 00:38:41 2012 +0200 +++ b/frontends/src/quick_frontend/quick_contact_list.py Wed Sep 26 01:23:56 2012 +0200 @@ -54,7 +54,7 @@ raise NotImplementedError def _replace(self, jid, groups=None, attributes=None): - if 'name' in attributes: + if attributes and 'name' in attributes: self.setCache(jid, 'name', attributes['name']) self.replace(jid, groups, attributes) @@ -65,7 +65,7 @@ def remove(self, jid): """remove a contact from the list""" raise NotImplementedError - + def add(self, jid, param_groups=None): """add a contact to the list""" raise NotImplementedError