Changeset 15432 for main/waeup.kofa/trunk
- Timestamp:
- 29 May 2019, 11:32:31 (6 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r15430 r15432 4 4 1.6.1.dev0 (unreleased) 5 5 ======================= 6 7 * Ease customization of selectable payment categories. 6 8 7 9 * Make maximum number of files listed in `finished` subfolder -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15426 r15432 1984 1984 @property 1985 1985 def selectable_categories(self): 1986 categories = getUtility(IKofaUtils).SELECTABLE_PAYMENT_CATEGORIES 1986 student = self.context.__parent__ 1987 categories = getUtility( 1988 IKofaUtils).selectable_payment_categories(student) 1987 1989 return sorted(categories.items(), key=lambda value: value[1]) 1988 1990 -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r15430 r15432 184 184 } 185 185 186 SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES) 187 188 PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES) 186 def selectable_payment_categories(self, student): 187 return self.PAYMENT_CATEGORIES 188 189 PREVIOUS_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES) 189 190 190 191 REPORTABLE_PAYMENT_CATEGORIES = {
Note: See TracChangeset for help on using the changeset viewer.