Ignore:
Timestamp:
28 Mar 2013, 17:03:36 (12 years ago)
Author:
Henrik Bettermann
Message:

Customize maxCredits.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r9905 r10051  
    387387        self.assertTrue('<option value="COURSE3">' in self.browser.contents)
    388388        return
     389
     390    def test_maxCredits(self):
     391        dummy = object()
     392        utils = getUtility(IStudentsUtils)
     393        self.assertEqual(utils.maxCredits(dummy), 48)
     394        return
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r9905 r10051  
    131131        return None, payment
    132132
     133    def maxCredits(self, studylevel):
     134        """Return maximum credits.
     135
     136        """
     137        return 48
     138
    133139    # AAUE prefix
    134140    STUDENT_ID_PREFIX = u'E'
Note: See TracChangeset for help on using the changeset viewer.