Changeset 8702
- Timestamp:
- 13 Jun 2012, 05:44:31 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py
r8453 r8702 74 74 return self.doAfterApplicantPaymentApproval() 75 75 76 def getOwner(self): 77 """Return applicant. 78 """ 79 return self.__parent__ 80 76 81 ApplicantOnlinePayment = attrs_to_fields(ApplicantOnlinePayment) 77 82 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8684 r8702 730 730 self.assertEqual(payment.p_category,'application') 731 731 self.assertEqual(payment.amount_auth,200.0) 732 # Applicant is owner of the payment ticket. 733 self.assertEqual(payment.getOwner(), self.applicant) 732 734 # The pdf payment slip can't yet be opened 733 735 #self.browser.open(payment_url + '/payment_receipt.pdf') -
main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py
r8429 r8702 93 93 ) 94 94 95 def getOwner(): 96 "Payments usually have an owner." 97 98 95 99 class ISCPayment(IPayment): 96 100 """A scratch card payment. -
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r8434 r8702 52 52 return payment_categories.getTermByToken(self.p_category).title 53 53 54 def getOwner(self): 55 "Payments usually have an owner." 56 return None 57 54 58 # not used 55 59 class SCPayment(Payment): -
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r8453 r8702 59 59 except AttributeError: 60 60 return None 61 62 def getOwner(self): 63 return self.getStudent() 61 64 62 65 def doAfterStudentPayment(self): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8688 r8702 1473 1473 self.assertEqual(self.student['payments'][value].p_level, 200) 1474 1474 1475 # Student is owner of the payment ticket. 1476 self.assertEqual(self.student['payments'][value].getOwner(), self.student) 1477 1475 1478 # We simulate the approval 1476 1479 self.assertEqual(len(self.app['accesscodes']['SFE-0']),0)
Note: See TracChangeset for help on using the changeset viewer.