Ignore:
Timestamp:
17 Jun 2012, 07:09:21 (12 years ago)
Author:
Henrik Bettermann
Message:

Replace getStudent method by a 'student' attribute.

File:
1 edited

Legend:

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

    r8735 r8736  
    4040        return
    4141
    42     def getStudent(self):
     42    @property
     43    def student(self):
    4344        return self.__parent__
    4445
     
    5152        if certificate == None:
    5253            return False
    53         if self.getStudent().state in (CLEARED, RETURNING):
     54        if self.student.state in (CLEARED, RETURNING):
    5455            return True
    55         if self.getStudent().state == PAID \
    56             and self.getStudent().is_postgrad:
     56        if self.student.state == PAID \
     57            and self.student.is_postgrad:
    5758            return True
    5859        return False
Note: See TracChangeset for help on using the changeset viewer.