Ignore:
Timestamp:
7 May 2013, 19:12:39 (11 years ago)
Author:
Henrik Bettermann
Message:

In AAUA we have special postgrad students like in Uniben.

File:
1 edited

Legend:

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

    r10120 r10157  
    3535    grok.provides(ICustomStudentStudyCourse)
    3636
     37    @property
     38    def is_postgrad(self):
     39        if self.certificate is None:
     40            return False
     41        return self.certificate.study_mode.startswith('pg') or \
     42            self.certificate.study_mode.startswith('special_pg')
     43
     44    @property
     45    def is_special_postgrad(self):
     46        if self.certificate is None:
     47            return False
     48        return self.certificate.study_mode.startswith('special_pg')
     49
     50
    3751CustomStudentStudyCourse = attrs_to_fields(CustomStudentStudyCourse)
    3852
Note: See TracChangeset for help on using the changeset viewer.