Changeset 12048 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 24 Nov 2014, 08:15:54 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r11976 r12048 554 554 555 555 class StudentTriggerTransitionFormPage(KofaEditFormPage): 556 """ View to manage student base data556 """ View to trigger student workflow transitions 557 557 """ 558 558 grok.context(IStudent) … … 2675 2675 students_utils = getUtility(IStudentsUtils) 2676 2676 max_credits = students_utils.maxCredits(self.context) 2677 if self.context.total_credits > max_credits:2677 if max_credits and self.context.total_credits > max_credits: 2678 2678 self.flash(_('Maximum credits of ${a} exceeded.', 2679 2679 mapping = {'a':max_credits}), type="warning") -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r11875 r12048 892 892 893 893 In some universities maximum credits is not constant, it 894 depends on the student's study level. 894 depends on the student's study level. Set maxCredits None or 0 895 in order to deactivate the limitation. 895 896 """ 896 897 return 50
Note: See TracChangeset for help on using the changeset viewer.