Ignore:
Timestamp:
14 Jan 2014, 06:52:21 (11 years ago)
Author:
Henrik Bettermann
Message:

Add more property attributes to the Payer adapter.

File:
1 edited

Legend:

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

    r10449 r10906  
    171171        return self.context.student.depcode
    172172
     173    @property
     174    def email(self):
     175        "Email of payer"
     176        return self.context.student.email
     177
     178    @property
     179    def phone(self):
     180        "Phone number of payer"
     181        return self.context.student.phone
     182
     183    @property
     184    def current_mode(self):
     185        "Current study mode of payer"
     186        return self.context.student.current_mode
     187
     188    @property
     189    def current_level(self):
     190        "Current level of payer"
     191        return self.context.student.current_level
     192
    173193# Student online payments must be importable. So we might need a factory.
    174194class StudentOnlinePaymentFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.