Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_app.py @ 64:d46f849664aa
SàT: multi-profile, plugins updated
- core: 2 new convenient methods: getJidNStream and getClient
- new param in plugin info: "handler" to know if there is a handler to plug on profiles clients
- plugins with handler now use an other class which is returned to profile client with the new method "getHandler" and pluged when connecting
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 30 Jan 2010 16:17:33 +1100 |
parents | a5b5fb5fc9fd |
children | 8147b4f40809 |
comparison
equal
deleted
inserted
replaced
63:0db25931b60d | 64:d46f849664aa |
---|---|
131 self.CM.add(from_jid) | 131 self.CM.add(from_jid) |
132 self.CM.update(from_jid, 'name', name) | 132 self.CM.update(from_jid, 'name', name) |
133 self.CM.update(from_jid, 'show', show) | 133 self.CM.update(from_jid, 'show', show) |
134 self.CM.update(from_jid, 'statuses', statuses) | 134 self.CM.update(from_jid, 'statuses', statuses) |
135 self.CM.update(from_jid, 'groups', groups) | 135 self.CM.update(from_jid, 'groups', groups) |
136 cache = self.bridge.getProfileCache(from_jid) | 136 cache = self.bridge.getCardCache(from_jid) |
137 if cache.has_key('nick'): | 137 if cache.has_key('nick'): |
138 self.CM.update(from_jid, 'nick', cache['nick']) | 138 self.CM.update(from_jid, 'nick', cache['nick']) |
139 if cache.has_key('avatar'): | 139 if cache.has_key('avatar'): |
140 self.CM.update(from_jid, 'avatar', self.bridge.getAvatarFile(cache['avatar'])) | 140 self.CM.update(from_jid, 'avatar', self.bridge.getAvatarFile(cache['avatar'])) |
141 self.contactList.replace(from_jid) | 141 self.contactList.replace(from_jid) |