Ignore:
Timestamp:
13 Jun 2012, 05:44:31 (12 years ago)
Author:
Henrik Bettermann
Message:

Add getOwner method to payments which is needed for the webservice.

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

    r8453 r8702  
    7474        return self.doAfterApplicantPaymentApproval()
    7575
     76    def getOwner(self):
     77        """Return applicant.
     78        """
     79        return self.__parent__
     80
    7681ApplicantOnlinePayment = attrs_to_fields(ApplicantOnlinePayment)
    7782
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r8684 r8702  
    730730        self.assertEqual(payment.p_category,'application')
    731731        self.assertEqual(payment.amount_auth,200.0)
     732        # Applicant is owner of the payment ticket.
     733        self.assertEqual(payment.getOwner(), self.applicant)
    732734        # The pdf payment slip can't yet be opened
    733735        #self.browser.open(payment_url + '/payment_receipt.pdf')
Note: See TracChangeset for help on using the changeset viewer.