Changeset 10914 for main


Ignore:
Timestamp:
14 Jan 2014, 11:44:09 (11 years ago)
Author:
Henrik Bettermann
Message:

Add missing property attributes to Payer adapter.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r10392 r10914  
    111111        return 'N/A'
    112112
     113    @property
     114    def email(self):
     115        "Email of payer"
     116        return self.context.__parent__.email
     117
     118    @property
     119    def phone(self):
     120        "Phone number of payer"
     121        return self.context.__parent__.phone
     122
     123    @property
     124    def current_mode(self):
     125        "Current study mode of payer"
     126        return 'N/A'
     127
     128    @property
     129    def current_level(self):
     130        "Current level of payer"
     131        return 'N/A'
     132
    113133# Applicant online payments must be importable. So we might need a factory.
    114134class ApplicantOnlinePaymentFactory(grok.GlobalUtility):
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py

    r10842 r10914  
    145145    faculty = Attribute('Faculty of payer')
    146146    department = Attribute('Department of payer')
     147    email= Attribute('Email of payer')
     148    phone= Attribute('Phone number of payer')
     149    current_mode= Attribute('Current study mode of payer')
     150    current_level= Attribute('Current level of payer')
Note: See TracChangeset for help on using the changeset viewer.