Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_contact_list.py @ 688:f7878ad3c846
tools: renamed tools.jid.JID attribute "short" to "bare"
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 29 Oct 2013 16:26:55 +0100 |
parents | 0b9bd47dffcd |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py Mon Oct 28 19:04:49 2013 +0100 +++ b/frontends/src/quick_frontend/quick_contact_list.py Tue Oct 29 16:26:55 2013 +0100 @@ -34,7 +34,7 @@ def getCache(self, jid, name): try: - jid_cache = self._cache[jid.short] + jid_cache = self._cache[jid.bare] if name == 'status': #XXX: we get the first status for 'status' key return jid_cache['statuses'].get('default','') return jid_cache[name] @@ -42,7 +42,7 @@ return None def setCache(self, jid, name, value): - jid_cache = self._cache.setdefault(jid.short, {}) + jid_cache = self._cache.setdefault(jid.bare, {}) jid_cache[name] = value def __contains__(self, jid): @@ -60,7 +60,7 @@ def remove(self, jid): """remove a contact from the list""" try: - del self.specials[jid.short] + del self.specials[jid.bare] except KeyError: pass @@ -70,7 +70,7 @@ def getSpecial(self, jid): """Return special type of jid, or None if it's not special""" - return self.specials.get(jid.short) + return self.specials.get(jid.bare) def setSpecial(self, jid, _type, show=False): """Set entity as a special @@ -78,7 +78,7 @@ @param _type: special type (e.g.: "MUC") @param show: True to display the dialog to chat with this entity """ - self.specials[jid.short] = _type + self.specials[jid.bare] = _type def updatePresence(self, jid, show, priority, statuses): """Update entity's presence status