Changeset 9142


Ignore:
Timestamp:
1 Sep 2012, 13:39:16 (12 years ago)
Author:
Henrik Bettermann
Message:

For FCEOkene we also need current_level as a property of 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

    r9138 r9142  
    152152    faccode = Attribute('The faculty code of any chosen study course')
    153153    current_session = Attribute('The current session of the student')
     154    current_level = Attribute('The current level of the student')
    154155    current_mode = Attribute('The current mode of the student')
    155156    fullname = Attribute('All name parts separated by hyphens')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/student.py

    r9138 r9142  
    129129            self.get('studycourse', None), 'current_session', None)
    130130        return session
     131
     132    @property
     133    def current_level(self):
     134        level = getattr(
     135            self.get('studycourse', None), 'current_level', None)
     136        return level
    131137
    132138    @property
Note: See TracChangeset for help on using the changeset viewer.