Ignore:
Timestamp:
14 Sep 2012, 05:31:47 (12 years ago)
Author:
Henrik Bettermann
Message:

In Okene we also need the current verdict of the student.

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

Legend:

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

    r9167 r9182  
    155155    current_level = Attribute('The current level of the student')
    156156    current_mode = Attribute('The current mode of the student')
     157    current_verdict = Attribute('The current verdict of the student')
    157158    fullname = Attribute('All name parts separated by hyphens')
    158159    display_fullname = Attribute('The fullname of an applicant')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/student.py

    r9142 r9182  
    142142        if certificate is not None:
    143143            return certificate.study_mode
     144        return None
     145
     146    @property
     147    def current_verdict(self):
     148        certificate = getattr(
     149            self.get('studycourse', None), 'certificate', None)
     150        if certificate is not None:
     151            return certificate.current_verdict
    144152        return None
    145153
Note: See TracChangeset for help on using the changeset viewer.