Mercurial > libervia-backend
comparison frontends/src/wix/contact_list.py @ 510:886754295efe
quick frontend, primitivus, wix: MUC private messages management
/!\ not fully finished, backend part is not done yet /!\
- as resources are discarded to manage chat windows lists, a pretty dirty hack is done to work around this:
full jid is escaped using a prefix (it becomes invalid and resource is preserved).
- new quick_utils module, with helper methods. escapePrivate and unescapePrivate implementations
- MUC private messages are not managed in Wix yet
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 11 Oct 2012 00:48:35 +0200 |
parents | debcf5dd404a |
children | ca13633d3b6b |
comparison
equal
deleted
inserted
replaced
509:64ff046dc201 | 510:886754295efe |
---|---|
167 _present = self.__presentItem(contact) | 167 _present = self.__presentItem(contact) |
168 if _present: | 168 if _present: |
169 self.Insert(_present, gp_idx+1, contact) | 169 self.Insert(_present, gp_idx+1, contact) |
170 | 170 |
171 def setSpecial(self, special_jid, special_type): | 171 def setSpecial(self, special_jid, special_type): |
172 pass | 172 QuickContactList.setSpecial(self, special_jid, special_type) |
173 | |
174 | 173 |
175 def remove(self, contact): | 174 def remove(self, contact): |
176 """remove a contact from the list""" | 175 """remove a contact from the list""" |
177 debug (_("removing %s"), contact) | 176 debug (_("removing %s"), contact) |
178 list_idx = self.__find_idx(contact) | 177 list_idx = self.__find_idx(contact) |