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/export.py

    r8576 r8736  
    146146            value = value.code
    147147        if name == 'student_id' and context is not None:
    148             student = context.getStudent()
     148            student = context.student
    149149            value = getattr(student, name, None)
    150150        return super(
     
    181181        """
    182182        if name == 'student_id' and context is not None:
    183             student = context.getStudent()
     183            student = context.student
    184184            value = getattr(student, name, None)
    185185        return super(
     
    214214        """
    215215        if context is not None:
    216             student = context.getStudent()
     216            student = context.student
    217217            if name == 'student_id' and student is not None:
    218218                value = getattr(student, name, None)
     
    251251        """
    252252        if context is not None:
    253             student = context.getStudent()
     253            student = context.student
    254254            if name in ['student_id'] and student is not None:
    255255                value = getattr(student, name, None)
Note: See TracChangeset for help on using the changeset viewer.