Mercurial > libervia-web
diff src/browser/sat_browser/contact_list.py @ 697:b395d1309936
browser_side: clean the code that has been commented or isolated during the refactorisation to base libervia on quick_frontend
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 20 Apr 2015 09:14:03 +0200 |
parents | c2f22ca12e23 |
children | 3b91225b457a |
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py Mon Apr 20 08:51:25 2015 +0200 +++ b/src/browser/sat_browser/contact_list.py Mon Apr 20 09:14:03 2015 +0200 @@ -233,18 +233,6 @@ if box: box.update() - def hasVisibleMembers(self, group): - """Tell if the given group actually has visible members - - @param group (unicode): the group to check - @return: boolean - """ - raise Exception # FIXME: remove this method - for jid_ in self.groups[group]: - if self._contacts_panel.updateContactBox(jid_).isVisible(): - return True - return False - def offlineContactsToShow(self): """Tell if offline contacts should be visible according to the user settings @@ -265,27 +253,6 @@ if box: # box doesn't exist for MUC bare entity, don't create it box.update() - # def updateVisibility(self, jids, groups): - # """Set the widgets visibility for the given contacts and groups - - # @param jids (list[unicode]): list of JID - # @param groups (list[unicode]): list of groups - # """ - # for jid_s in jids: - # try: - # self._contacts_panel.getContactBox(jid_s).setVisible(jid_s in self.connected or self.offlineContactsToShow()) - # except TypeError: - # log.warning('No box for contact %s: this code line should not be reached' % jid_s) - # for group in groups: - # try: - # self._group_panel.getGroupBox(group).setVisible(self.hasVisibleMembers(group) or self.emtyGroupsToShow()) - # except TypeError: - # log.warning('No box for group %s: this code line should not be reached' % group) - - # def refresh(self): - # """Show or hide disconnected contacts and empty groups""" - # self.updateVisibility(self._contacts_panel.contacts, self.groups.keys()) - class JIDList(list): """JID-friendly list implementation for Pyjamas"""