Changeset 8421 for main/waeup.uniben/trunk
- Timestamp:
- 11 May 2012, 15:46:29 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r8292 r8421 26 26 IApplicantRegisterUpdate, IApplicant, IApplicantEdit) 27 27 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 28 OnlinePaymentCallbackPage,ExportPDFPage,28 ExportPDFPage, 29 29 ApplicantManageFormPage, ApplicantEditFormPage, 30 30 ApplicantRegistrationPage, ApplicantAddFormPage, … … 33 33 ApplicantBaseDisplayFormPage) 34 34 from waeup.kofa.applicants.viewlets import ( 35 RequestCallbackActionButton,PaymentReceiptActionButton)35 PaymentReceiptActionButton) 36 36 from waeup.kofa.applicants.pdf import PDFApplicationSlip 37 37 from waeup.uniben.applicants.interfaces import ( -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/payment.py
r8263 r8421 22 22 from zope.component.interfaces import IFactory 23 23 from zope.interface import implementedBy 24 from waeup.kofa. payments importOnlinePayment24 from waeup.kofa.applicants.payment import ApplicantOnlinePayment 25 25 from waeup.kofa.utils.helpers import attrs_to_fields 26 26 from waeup.uniben.applicants.interfaces import ICustomApplicantOnlinePayment 27 27 28 class CustomApplicantOnlinePayment(OnlinePayment): 29 """This is an online payment. 28 class CustomApplicantOnlinePayment(ApplicantOnlinePayment): 29 """This is a custom online payment for applicants. 30 31 Since this class inherits from ApplicantOnlinePayment, it automatically 32 implements the interfaces of the parent class which means 33 all viewlets and views meant for StudentOnlinePayment 34 can also be accessed in the customized system. 30 35 """ 31 36 grok.implements(ICustomApplicantOnlinePayment) -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r8401 r8421 27 27 from waeup.kofa.utils.helpers import to_timezone 28 28 from waeup.kofa.students.browser import write_log_message 29 from waeup.kofa.students.viewlets import RequestCallbackActionButton as RCABStudent30 from waeup.kofa.applicants.viewlets import RequestCallbackActionButton as RCABApplicant29 from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent 30 from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant 31 31 from waeup.kofa.payments.interfaces import payment_categories 32 32 from waeup.uniben.students.interfaces import ICustomStudentOnlinePayment … … 128 128 return True 129 129 130 class InterswitchActionButtonStudent( RCABStudent):130 class InterswitchActionButtonStudent(APABStudent): 131 131 grok.order(1) 132 132 grok.context(ICustomStudentOnlinePayment) … … 141 141 return self.view.url(self.view.context, self.target) 142 142 143 class InterswitchActionButtonApplicant( RCABApplicant):143 class InterswitchActionButtonApplicant(APABApplicant): 144 144 grok.order(1) 145 145 grok.context(ICustomApplicantOnlinePayment) … … 172 172 173 173 # Alternative preferred solution 174 class InterswitchRequestWebserviceActionButtonStudent( RCABStudent):174 class InterswitchRequestWebserviceActionButtonStudent(APABStudent): 175 175 grok.order(2) 176 176 grok.context(ICustomStudentOnlinePayment) 177 177 icon = 'actionicon_call.png' 178 text = _('Reque st CollegePAY Webservice')178 text = _('Requery CollegePAY') 179 179 target = 'request_webservice' 180 180 181 class InterswitchRequestWebserviceActionButtonApplicant( RCABApplicant):181 class InterswitchRequestWebserviceActionButtonApplicant(APABApplicant): 182 182 grok.order(2) 183 183 grok.context(ICustomApplicantOnlinePayment) 184 184 icon = 'actionicon_call.png' 185 text = _('Reque st CollegePAY Webservice')185 text = _('Requery CollegePAY') 186 186 target = 'request_webservice' 187 187 -
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.