comparison frontends/src/quick_frontend/quick_contact_list.py @ 1943:ccfe45302a5c cagou

minor doc fixes
author Goffi <goffi@goffi.org>
date Mon, 18 Apr 2016 18:35:19 +0200
parents e68483c5a999
children 633b5c21aefd
comparison
equal deleted inserted replaced
1942:7f053e1f0b67 1943:ccfe45302a5c
718 entities.update(contact_list.selected) 718 entities.update(contact_list.selected)
719 return entities 719 return entities
720 720
721 @property 721 @property
722 def items(self): 722 def items(self):
723 """Return item representation for all visible entities in cache 723 """Return item representation for visible entities in cache
724 724
725 items are unordered 725 items are unordered
726 key: bare jid, value: data 726 key: bare jid, value: data
727 """ 727 """
728 items = {} 728 items = {}
734 items.update(contact_list.items) 734 items.update(contact_list.items)
735 return items 735 return items
736 736
737 @property 737 @property
738 def items_sorted(self): 738 def items_sorted(self):
739 """Return item representation for all visible entities in cache 739 """Return item representation for visible entities in cache
740 740
741 items are ordered using self.items_sort 741 items are ordered using self.items_sort
742 key: bare jid, value: data 742 key: bare jid, value: data
743 """ 743 """
744 return self.items_sort(self.items) 744 return self.items_sort(self.items)
745 745
746 def items_sort(self, items): 746 def items_sort(self, items):
747 """sort items 747 """sort items
748 748
749 @param items(dict): items to sort (we be emptied !) 749 @param items(dict): items to sort (will be emptied !)
750 @return (OrderedDict): sorted items 750 @return (OrderedDict): sorted items
751 """ 751 """
752 ordered_items = OrderedDict() 752 ordered_items = OrderedDict()
753 bare_jids = sorted(items.keys()) 753 bare_jids = sorted(items.keys())
754 for jid_ in bare_jids: 754 for jid_ in bare_jids: