Mercurial > libervia-backend
diff frontends/primitivus/primitivus @ 116:7c482ecac0ff
primitivus: basic contact list, connexion now work \o/
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 01 Jul 2010 18:52:51 +0800 |
parents | e5ca22113280 |
children | 1f0fd6f03e2b |
line wrap: on
line diff
--- a/frontends/primitivus/primitivus Thu Jul 01 18:19:20 2010 +0800 +++ b/frontends/primitivus/primitivus Thu Jul 01 18:52:51 2010 +0800 @@ -26,6 +26,7 @@ from quick_frontend.quick_contact_management import QuickContactManagement import urwid from profile_manager import ProfileManager +from contact_list import ContactList import pdb """from window import Window from editbox import EditBox @@ -61,6 +62,7 @@ class PrimitivusApp(QuickApp): def __init__(self): + self.CM = QuickContactManagement() #FIXME: not the best place QuickApp.__init__(self) #XXX: yes it's an unusual place for the constructor of a parent class, but the init order is important ## main loop setup ## @@ -79,6 +81,10 @@ main_widget = ProfileManager(self) return main_widget + def plug_profile(self, profile_key='@DEFAULT@'): + self.loop.widget = self.contactList = ContactList(self, self.CM) + QuickApp.plug_profile(self, profile_key) + sat = PrimitivusApp() sat.start()