Ignore:
Timestamp:
2 May 2012, 11:54:22 (13 years ago)
Author:
Henrik Bettermann
Message:

Specify may_register for Uniben.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/studycourse.py

    r8326 r8328  
    3737    @property
    3838    def may_register(self):
    39         return True
     39        if self.previous_verdict in (
     40            'A','B','C','F','J','L','M','N','O','X','Z') or \
     41            self.current_level in (0, 100) or\
     42            (self.__parent__.current_mode.startswith('de') and self.current_level == 200) or \
     43            (self.__parent__.current_mode.startswith('ph') and self.current_level == 300):
     44            return True
     45        return False
    4046
    4147CustomStudentStudyCourse = attrs_to_fields(CustomStudentStudyCourse)
Note: See TracChangeset for help on using the changeset viewer.