Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 435:c243f4cb2ad9
plugin XEP-0054: cache now use storage
bridge: getCardCache updated to manage profile
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Nov 2011 15:56:51 +0100 |
parents | f6f94e21c642 |
children | cf005701624b |
comparison
equal
deleted
inserted
replaced
434:d7e5df876a04 | 435:c243f4cb2ad9 |
---|---|
282 self.CM.add(from_jid) | 282 self.CM.add(from_jid) |
283 self.CM.update(from_jid, 'name', unicode(name)) | 283 self.CM.update(from_jid, 'name', unicode(name)) |
284 self.CM.update(from_jid, 'show', show) | 284 self.CM.update(from_jid, 'show', show) |
285 self.CM.update(from_jid, 'statuses', statuses) | 285 self.CM.update(from_jid, 'statuses', statuses) |
286 self.CM.update(from_jid, 'groups', groups) | 286 self.CM.update(from_jid, 'groups', groups) |
287 cache = self.bridge.getCardCache(from_jid) | 287 cache = self.bridge.getCardCache(from_jid, profile) |
288 if cache.has_key('nick'): | 288 if cache.has_key('nick'): |
289 self.CM.update(from_jid, 'nick', unicode(cache['nick'])) | 289 self.CM.update(from_jid, 'nick', unicode(cache['nick'])) |
290 if cache.has_key('avatar'): | 290 if cache.has_key('avatar'): |
291 self.CM.update(from_jid, 'avatar', self.bridge.getAvatarFile(cache['avatar'])) | 291 self.CM.update(from_jid, 'avatar', self.bridge.getAvatarFile(cache['avatar'])) |
292 self.contactList.replace(from_jid, self.CM.getAttr(from_jid, 'groups')) | 292 self.contactList.replace(from_jid, self.CM.getAttr(from_jid, 'groups')) |