- Timestamp:
- 17 Mar 2013, 08:40:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py
r9984 r10030 27 27 from waeup.kofa.interfaces import MessageFactory as _ 28 28 from waeup.kofa.payments import OnlinePayment 29 from waeup.kofa.payments.interfaces import IPay mentWebservice29 from waeup.kofa.payments.interfaces import IPayer 30 30 from waeup.kofa.applicants.interfaces import IApplicantOnlinePayment 31 31 from waeup.kofa.utils.helpers import attrs_to_fields … … 78 78 ApplicantOnlinePayment, omit=['display_item']) 79 79 80 class Pay mentWebservice(grok.Adapter):81 """An adapter to publish applicant data through a webservice.80 class Payer(grok.Adapter): 81 """An adapter to publish applicant data through a simple webservice. 82 82 """ 83 83 grok.context(IApplicantOnlinePayment) 84 grok.implements(IPay mentWebservice)84 grok.implements(IPayer) 85 85 86 86 @property 87 87 def display_fullname(self): 88 "Name of paye e"88 "Name of payer" 89 89 return self.context.__parent__.display_fullname 90 90 91 91 @property 92 92 def id(self): 93 "Id of paye e"93 "Id of payer" 94 94 return self.context.__parent__.applicant_id 95 95 96 96 @property 97 97 def reg_number(self): 98 "Reg number of paye e"98 "Reg number of payer" 99 99 return self.context.__parent__.reg_number 100 100
Note: See TracChangeset for help on using the changeset viewer.