comparison src/browser/sat_browser/contact_list.py @ 633:617f7a5c5312 frontends_multi_profiles

browser side (contact list): use of c.bool for parameter conversion
author Goffi <goffi@goffi.org>
date Mon, 23 Feb 2015 18:43:15 +0100
parents 71abccd8d228
children 16a5da120b7f
comparison
equal deleted inserted replaced
632:c2abadf31afb 633:617f7a5c5312
577 def offlineContactsToShow(self): 577 def offlineContactsToShow(self):
578 """Tell if offline contacts should be visible according to the user settings 578 """Tell if offline contacts should be visible according to the user settings
579 579
580 @return: boolean 580 @return: boolean
581 """ 581 """
582 return self.host.getCachedParam('General', C.SHOW_OFFLINE_CONTACTS) == 'true' 582 return C.bool(self.host.getCachedParam('General', C.SHOW_OFFLINE_CONTACTS))
583 583
584 def emtyGroupsToShow(self): 584 def emtyGroupsToShow(self):
585 """Tell if empty groups should be visible according to the user settings 585 """Tell if empty groups should be visible according to the user settings
586 586
587 @return: boolean 587 @return: boolean
588 """ 588 """
589 return self.host.getCachedParam('General', C.SHOW_EMPTY_GROUPS) == 'true' 589 return C.bool(self.host.getCachedParam('General', C.SHOW_EMPTY_GROUPS))
590 590
591 def updatePresence(self, entity, show, priority, statuses): 591 def updatePresence(self, entity, show, priority, statuses):
592 QuickContactList.updatePresence(self, entity, show, priority, statuses) 592 QuickContactList.updatePresence(self, entity, show, priority, statuses)
593 entity_bare = entity.bare 593 entity_bare = entity.bare
594 show = self.getCache(entity_bare, C.PRESENCE_SHOW) # we use cache to have the show nformation of main resource only 594 show = self.getCache(entity_bare, C.PRESENCE_SHOW) # we use cache to have the show nformation of main resource only