Ignore:
Timestamp:
5 Nov 2012, 07:19:54 (12 years ago)
Author:
Henrik Bettermann
Message:

Limit the total number of credits per level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r9521 r9532  
    573573        return pdf_stream
    574574
     575    TOTAL_CREDITS = 58
     576
     577    def maxCreditsExceeded(self, studylevel, course):
     578        if self.TOTAL_CREDITS and \
     579            studylevel.total_credits + course.credits > self.TOTAL_CREDITS:
     580            return self.TOTAL_CREDITS
     581        return 0
     582
    575583    VERDICTS_DICT = {
    576584        '0': _('(not yet)'),
Note: See TracChangeset for help on using the changeset viewer.