Changeset 8421 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 11 May 2012, 15:46:29 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r8263 r8421 26 26 StudentPersonalDisplayFormPage, 27 27 StudentClearanceManageFormPage, StudentClearanceEditFormPage, 28 StudentClearanceDisplayFormPage, OnlinePayment CallbackPage,28 StudentClearanceDisplayFormPage, OnlinePaymentFakeApprovePage, 29 29 ExportPDFClearanceSlipPage, StudentBaseManageFormPage, 30 30 StudentBaseEditFormPage, StudentPersonalEditFormPage, … … 32 32 OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage) 33 33 from waeup.kofa.students.viewlets import ( 34 RequestCallbackActionButton,PaymentReceiptActionButton)34 PaymentReceiptActionButton) 35 35 from waeup.uniben.students.interfaces import ( 36 36 ICustomStudentBase, ICustomStudent, ICustomStudentPersonal, … … 184 184 return payment 185 185 186 class CustomOnlinePaymentFakeApprovePage(OnlinePaymentFakeApprovePage): 187 """ Disable payment approval view for students. 188 189 This view is used for browser tests only and 190 has to be neutralized here! 191 """ 192 193 grok.name('fake_approve') 194 grok.require('waeup.managePortal') 195 196 def update(self): 197 return 198 186 199 class CustomExportPDFPaymentSlipPage(ExportPDFPaymentSlipPage): 187 200 """Deliver a PDF slip of the context. -
main/waeup.uniben/trunk/src/waeup/uniben/students/payments.py
r8247 r8421 23 23 from zope.interface import implementedBy 24 24 from waeup.kofa.students.interfaces import IStudentNavigation 25 from waeup.kofa. payments import PaymentsContainer,OnlinePayment25 from waeup.kofa.students.payments import StudentOnlinePayment 26 26 from waeup.kofa.utils.helpers import attrs_to_fields 27 27 from waeup.uniben.students.interfaces import ICustomStudentOnlinePayment 28 28 29 class CustomStudentOnlinePayment(OnlinePayment): 30 """This is an online payment. 29 class CustomStudentOnlinePayment(StudentOnlinePayment): 30 """This is a custom online payment for students. 31 32 Since this class inherits from StudentOnlinePayment, it automatically 33 implements the interfaces of the parent class which means 34 all viewlets and views meant for StudentOnlinePayment 35 can also be accessed in the customized system. 31 36 """ 32 37 grok.implements(ICustomStudentOnlinePayment, IStudentNavigation) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r8413 r8421 124 124 # has paid for. 125 125 details['p_session'], details['p_level'] = self.getReturningData(student) 126 if details['amount'] == 0.0:126 if details['amount'] in (0.0, None): 127 127 details['error'] = _(u'Amount could not be determined.') 128 128 return details
Note: See TracChangeset for help on using the changeset viewer.