Ignore:
Timestamp:
24 Nov 2014, 08:15:54 (10 years ago)
Author:
Henrik Bettermann
Message:

Disable maximum credit load by setting maxCresits 0 or None.

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  
    554554
    555555class StudentTriggerTransitionFormPage(KofaEditFormPage):
    556     """ View to manage student base data
     556    """ View to trigger student workflow transitions
    557557    """
    558558    grok.context(IStudent)
     
    26752675        students_utils = getUtility(IStudentsUtils)
    26762676        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:
    26782678            self.flash(_('Maximum credits of ${a} exceeded.',
    26792679                mapping = {'a':max_credits}), type="warning")
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r11875 r12048  
    892892
    893893        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.
    895896        """
    896897        return 50
Note: See TracChangeset for help on using the changeset viewer.