Mercurial > libervia-backend
comparison frontends/src/wix/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 | 6246eb6d64a0 |
comparison
equal
deleted
inserted
replaced
687:af0d08a84cc6 | 688:f7878ad3c846 |
---|---|
63 def __find_idx(self, entity): | 63 def __find_idx(self, entity): |
64 """Find indexes of given contact (or groups) in contact list, manage jid | 64 """Find indexes of given contact (or groups) in contact list, manage jid |
65 @return: list of indexes""" | 65 @return: list of indexes""" |
66 result=[] | 66 result=[] |
67 for i in range(self.GetCount()): | 67 for i in range(self.GetCount()): |
68 if (type(entity) == JID and type(self.GetClientData(i)) == JID and self.GetClientData(i).short == entity.short) or\ | 68 if (type(entity) == JID and type(self.GetClientData(i)) == JID and self.GetClientData(i).bare == entity.bare) or\ |
69 self.GetClientData(i) == entity: | 69 self.GetClientData(i) == entity: |
70 result.append(i) | 70 result.append(i) |
71 return result | 71 return result |
72 | 72 |
73 def update_jid(self, jid): | 73 def update_jid(self, jid): |
134 <b>%s</b> %s<br /> | 134 <b>%s</b> %s<br /> |
135 <i>%s</i> | 135 <i>%s</i> |
136 </td> | 136 </td> |
137 </table> | 137 </table> |
138 """ % (avatar, | 138 """ % (avatar, |
139 escape(nick or name or jid.node or jid.short), | 139 escape(nick or name or jid.node or jid.bare), |
140 show_html, | 140 show_html, |
141 escape(status)) | 141 escape(status)) |
142 | 142 |
143 return html | 143 return html |
144 | 144 |