Mercurial > libervia-backend
comparison frontends/src/primitivus/contact_list.py @ 2141:35762e9ce8b9
primitivus: fixed resources diplay in contact list
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 06 Feb 2017 20:51:56 +0100 |
parents | 7aa58b7a47e2 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2140:f79935f41125 | 2141:35762e9ce8b9 |
---|---|
234 if entity in self.contact_list._specials or not self.contact_list.entityToShow(entity): | 234 if entity in self.contact_list._specials or not self.contact_list.entityToShow(entity): |
235 continue | 235 continue |
236 markup_extra = [] | 236 markup_extra = [] |
237 if self.contact_list.show_resources: | 237 if self.contact_list.show_resources: |
238 for resource in self.contact_list.getCache(entity, C.CONTACT_RESOURCES): | 238 for resource in self.contact_list.getCache(entity, C.CONTACT_RESOURCES): |
239 resource_disp = ('resource_main' if resource == self.getCache(entity, C.CONTACT_MAIN_RESOURCE) else 'resource', "\n " + resource) | 239 resource_disp = ('resource_main' if resource == self.contact_list.getCache(entity, C.CONTACT_MAIN_RESOURCE) else 'resource', "\n " + resource) |
240 markup_extra.append(resource_disp) | 240 markup_extra.append(resource_disp) |
241 if self.contact_list.show_status: | 241 if self.contact_list.show_status: |
242 status = self.contact_list.getCache(jid.JID('%s/%s' % (entity, resource)), 'status') | 242 status = self.contact_list.getCache(jid.JID('%s/%s' % (entity, resource)), 'status') |
243 status_disp = ('status', "\n " + status) if status else "" | 243 status_disp = ('status', "\n " + status) if status else "" |
244 markup_extra.append(status_disp) | 244 markup_extra.append(status_disp) |