Changeset 16526 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 5 Jul 2021, 15:42:14 (3 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py
r16225 r16526 94 94 95 95 @property 96 def payer(self): 97 "The payer object" 98 return self.context.__parent__ 99 100 @property 96 101 def display_fullname(self): 97 102 "Name of payer" … … 140 145 return 'N/A' 141 146 147 def doAfterPayment(self): 148 "Do after payment was made." 149 return self.context.__parent__.doAfterApplicantPayment() 150 142 151 # Applicant online payments must be importable. So we might need a factory. 143 152 class ApplicantOnlinePaymentFactory(grok.GlobalUtility): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r16243 r16526 1018 1018 self.assertEqual(payment.amount_auth,200.0) 1019 1019 # Applicant is payer of the payment ticket. 1020 self.assertEqual(IPayer(payment).payer, self.applicant) 1020 1021 self.assertEqual( 1021 1022 IPayer(payment).display_fullname, 'John Anthony Tester')
Note: See TracChangeset for help on using the changeset viewer.