diff src/browser/sat_browser/contact_group.py @ 944:5d9f6d25c586

browser: various fixes this is a first pass to fix main Libervia features which have been broken with changes in backend: - fixed Chat signature - added/removed/replaced a couple of missing methods - use contact_list_widget instead of contact_list when needed
author Goffi <goffi@goffi.org>
date Fri, 19 May 2017 17:03:04 +0200
parents f8a7a046ff9c
children
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_group.py	Fri May 19 13:54:49 2017 +0200
+++ b/src/browser/sat_browser/contact_group.py	Fri May 19 17:03:04 2017 +0200
@@ -90,7 +90,7 @@
         self.container = container
         self._on_close_callback = onCloseCallback
 
-        self.all_contacts = contact_list.JIDList(self.host.contact_list.roster_entities)
+        self.all_contacts = contact_list.JIDList(self.host.contact_list.roster)
         roster_entities_by_group = self.host.contact_list.roster_entities_by_group
         del roster_entities_by_group[None]  # remove the empty group
         roster_groups = roster_entities_by_group.keys()
@@ -126,7 +126,7 @@
 
         # Hide the contacts list from the main panel to not confuse the user
         self.restore_contact_panel = False
-        clist = self.host.contact_list
+        clist = self.host.contact_list_widget
         if clist.getVisible():
             self.restore_contact_panel = True
             self.host.panel._contactsSwitch()
@@ -168,7 +168,7 @@
 
     def initContactList(self):
         """Add the contact list to the DockPanel."""
-        
+
         self.toggle = CheckBox("Hide assigned contacts")
         self.toggle.addClickListener(lambda dummy: self.updateContactList())
         self.toggle.addStyleName("toggleAssignedContacts")