- Timestamp:
- 13 Jun 2012, 06:32:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r8702 r8703 26 26 IStudentPaymentsContainer, IStudentNavigation, IStudentOnlinePayment) 27 27 from waeup.kofa.payments import PaymentsContainer, OnlinePayment 28 from waeup.kofa.payments.interfaces import IPaymentWebservice 28 29 from waeup.kofa.utils.helpers import attrs_to_fields 29 30 from waeup.kofa.accesscodes import create_accesscode … … 59 60 except AttributeError: 60 61 return None 61 62 def getOwner(self):63 return self.getStudent()64 62 65 63 def doAfterStudentPayment(self): … … 132 130 StudentOnlinePayment = attrs_to_fields(StudentOnlinePayment) 133 131 132 class PaymentWebservice(grok.Adapter): 133 """An adapter to publish student data through a webservice. 134 """ 135 grok.context(IStudentOnlinePayment) 136 grok.implements(IPaymentWebservice) 137 138 @property 139 def payee(self): 140 return self.context.getStudent().display_fullname 141 134 142 # Student online payments must be importable. So we might need a factory. 135 143 class StudentOnlinePaymentFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.