Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_contact_list.py @ 2017:7aa58b7a47e2
quick_frontend, primitivus (contact_list): ContactList widget must now call postInit() when ready, to avoid being registered before being constructed
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Jul 2016 17:56:18 +0200 |
parents | f09562b0704d |
children | d941fa9954f4 |
comparison
equal
deleted
inserted
replaced
2016:f09562b0704d | 2017:7aa58b7a47e2 |
---|---|
819 PROFILES_MULTIPLE=True | 819 PROFILES_MULTIPLE=True |
820 PROFILES_ALLOW_NONE=True # Can be linked to no profile (e.g. at the early forntend start) | 820 PROFILES_ALLOW_NONE=True # Can be linked to no profile (e.g. at the early forntend start) |
821 | 821 |
822 def __init__(self, host, profiles): | 822 def __init__(self, host, profiles): |
823 super(QuickContactList, self).__init__(host, None, profiles) | 823 super(QuickContactList, self).__init__(host, None, profiles) |
824 handler.register(self) | |
825 | 824 |
826 # options | 825 # options |
827 # for next values, None means use indivual value per profile | 826 # for next values, None means use indivual value per profile |
828 # True or False mean override these values for all profiles | 827 # True or False mean override these values for all profiles |
829 self.show_disconnected = None # TODO | 828 self.show_disconnected = None # TODO |
830 self.show_empty_groups = None # TODO | 829 self.show_empty_groups = None # TODO |
831 self.show_resources = None # TODO | 830 self.show_resources = None # TODO |
832 self.show_status = None # TODO | 831 self.show_status = None # TODO |
832 | |
833 def postInit(self): | |
834 """Method to be called by frontend after widget is initialised""" | |
835 handler.register(self) | |
833 | 836 |
834 @property | 837 @property |
835 def items(self): | 838 def items(self): |
836 return handler.items | 839 return handler.items |
837 | 840 |