Mercurial > libervia-web
comparison src/browser/sat_browser/contact_group.py @ 647:e0021d571eef frontends_multi_profiles
browser side: moved ContactBox, ContactsPanel, ContactLabeland ContactMenuBar to base_widget/base_panels so they can be reused outside of contact_list module
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Feb 2015 13:10:46 +0100 |
parents | 32dbbc941123 |
children | 6d3142b782c3 |
comparison
equal
deleted
inserted
replaced
646:9972a24592b0 | 647:e0021d571eef |
---|---|
27 from pyjamas.ui import HasAlignment | 27 from pyjamas.ui import HasAlignment |
28 | 28 |
29 import dialog | 29 import dialog |
30 import list_manager | 30 import list_manager |
31 import contact_list | 31 import contact_list |
32 import base_panels | |
32 | 33 |
33 | 34 |
34 unicode = str # FIXME: pyjamas workaround | 35 unicode = str # FIXME: pyjamas workaround |
35 | 36 |
36 | 37 |
183 | 184 |
184 def initContactList(self): | 185 def initContactList(self): |
185 """Add the contact list to the DockPanel.""" | 186 """Add the contact list to the DockPanel.""" |
186 self.toggle = Button("", self.toggleContacts) | 187 self.toggle = Button("", self.toggleContacts) |
187 self.toggle.addStyleName("toggleAssignedContacts") | 188 self.toggle.addStyleName("toggleAssignedContacts") |
188 self.contacts = contact_list.BaseContactsPanel(self.host) | 189 self.contacts = base_panels.ContactsPanel(self.host) |
189 for contact in self.all_contacts: | 190 for contact in self.all_contacts: |
190 self.contacts.add(contact) | 191 self.contacts.add(contact) |
191 contact_panel = VerticalPanel() | 192 contact_panel = VerticalPanel() |
192 contact_panel.add(self.toggle) | 193 contact_panel.add(self.toggle) |
193 contact_panel.add(self.contacts) | 194 contact_panel.add(self.contacts) |