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.

File:
1 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")
Note: See TracChangeset for help on using the changeset viewer.