Ignore:
Timestamp:
2 Nov 2012, 06:13:11 (12 years ago)
Author:
Henrik Bettermann
Message:

Customize addCertCourseTickets. Add ticket only if student has paid for the course.semester. Tests will follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/student.py

    r8991 r9502  
    3535    grok.provides(ICustomStudent)
    3636
     37    def getPaymentTuples(self):
     38        """Special AAUE method needed for selecting courses in semesters
     39        the student has paid for.
     40        """
     41        payments = [(p.p_session, p.p_category, p.p_state)
     42            for p in self['payments'].values()]
     43        return payments
    3744
    3845# Set all attributes of Student required in IStudent as field
Note: See TracChangeset for help on using the changeset viewer.