Mercurial > libervia-web
diff src/browser/sat_browser/contact_group.py @ 648:6d3142b782c3 frontends_multi_profiles
browser_side: classes reorganisation:
- moved widgets in dedicated modules (base, contact, editor, libervia) and a widget module for single classes
- same thing for panels (base, main, contact)
- libervia_widget mix main panels and widget and drag n drop for technical reasons (see comments)
- renamed WebPanel to WebWidget
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Feb 2015 18:10:54 +0100 |
parents | e0021d571eef |
children | 9877607c719a |
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_group.py Thu Feb 26 13:10:46 2015 +0100 +++ b/src/browser/sat_browser/contact_group.py Thu Feb 26 18:10:54 2015 +0100 @@ -28,8 +28,8 @@ import dialog import list_manager +import contact_panel import contact_list -import base_panels unicode = str # FIXME: pyjamas workaround @@ -186,13 +186,13 @@ """Add the contact list to the DockPanel.""" self.toggle = Button("", self.toggleContacts) self.toggle.addStyleName("toggleAssignedContacts") - self.contacts = base_panels.ContactsPanel(self.host) + self.contacts = contact_panel.ContactsPanel(self.host) for contact in self.all_contacts: self.contacts.add(contact) - contact_panel = VerticalPanel() - contact_panel.add(self.toggle) - contact_panel.add(self.contacts) - return contact_panel + panel = VerticalPanel() + panel.add(self.toggle) + panel.add(self.contacts) + return panel def toggleContacts(self, sender=None, showAll=None): """Toggle the button to show contacts and the contact list.