Changeset 11664 for main/waeup.kofa/trunk/src
- Timestamp:
- 26 May 2014, 10:21:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r11589 r11664 113 113 def getValues(self, context): 114 114 utils = getUtility(IKofaUtils) 115 return sorted(getattr(utils, self.DICT_NAME).keys()) 115 sorted_items = sorted(getattr(utils, self.DICT_NAME).items(), 116 key=lambda item: item[1]) 117 return [item[0] for item in sorted_items] 116 118 117 119 def getToken(self, context, value):
Note: See TracChangeset for help on using the changeset viewer.