Changeset 15999 for main/kofacustom.iuokada/trunk
- Timestamp:
- 11 Feb 2020, 09:51:47 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py
r15937 r15999 51 51 52 52 def update(self): 53 # Already now it becomes an Etranzact payment. We set the net amount54 # and add the gateway amount.55 53 if not webconnect_module_activated( 56 54 self.context.__parent__.__parent__.year, self.context): 57 return _("Etranzact payments deactivated.") 55 self.flash(_('Forbidden'), type='danger') 56 self.redirect(self.url(self.context, '@@index')) 57 return 58 # Already now it becomes an Etranzact payment. We set the net amount 59 # and add the gateway amount. 58 60 if not self.context.r_company: 59 61 self.context.net_amt = self.context.amount_auth … … 93 95 94 96 def update(self): 95 # Already now it becomes an Etranzact payment. We set the net amount96 # and add the gateway amount.97 97 if not webconnect_module_activated( 98 98 self.context.student.current_session, self.context): 99 return _("Etranzact payments deactivated.") 99 self.flash(_('Forbidden'), type='danger') 100 self.redirect(self.url(self.context, '@@index')) 101 return 102 # Already now it becomes an Etranzact payment. We set the net amount 103 # and add the gateway amount. 100 104 if not self.context.r_company: 101 105 self.context.net_amt = self.context.amount_auth … … 135 139 if not payoutlet_module_activated( 136 140 self.context.student.current_session, self.context): 137 return 138 super(EtranzactEnterPinPageStudent, self).update() 141 self.flash(_('Forbidden'), type='danger') 142 self.redirect(self.url(self.context, '@@index')) 143 return 139 144 # Already now it becomes an Etranzact payment. We set the net amount 140 145 # and add the gateway amount. … … 159 164 if not payoutlet_module_activated( 160 165 self.context.__parent__.__parent__.year, self.context): 161 return 162 super(EtranzactEnterPinPageApplicant, self).update() 166 self.flash(_('Forbidden'), type='danger') 167 self.redirect(self.url(self.context, '@@index')) 168 return 163 169 # Already now it becomes an Etranzact payment. We set the net amount 164 170 # and add the gateway amount. -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/browser.py
r15794 r15999 20 20 import grok 21 21 from kofacustom.nigeria.interswitch.browser import ( 22 module_activated, 22 23 InterswitchPaymentRequestWebservicePageApplicant, 23 24 InterswitchPaymentRequestWebservicePageStudent, … … 64 65 65 66 def update(self): 67 if not module_activated( 68 self.context.student.current_session, self.context): 69 self.flash(_('Forbidden'), type='danger') 70 self.redirect(self.url(self.context, '@@index')) 71 return 66 72 error = self.init_update() 67 73 if error: … … 158 164 159 165 def update(self): 166 if not module_activated( 167 self.context.__parent__.__parent__.year, self.context): 168 self.flash(_('Forbidden'), type='danger') 169 self.redirect(self.url(self.context, '@@index')) 170 return 160 171 error = self.init_update() 161 172 if error: -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py
r15937 r15999 45 45 NigeriaStudentBaseEditFormPage, 46 46 NigeriaBedTicketAddPage, 47 NigeriaAccommodationManageFormPage 47 NigeriaAccommodationManageFormPage, 48 NigeriaAccommodationDisplayFormPage, 48 49 ) 49 50 … … 92 93 # ) 93 94 # return () 95 96 class CustomAccommodationDisplayFormPage(NigeriaAccommodationDisplayFormPage): 97 """ Page to view bed tickets. 98 """ 99 with_hostel_selection = True 94 100 95 101 class CustomAccommodationManageFormPage(NigeriaAccommodationManageFormPage):
Note: See TracChangeset for help on using the changeset viewer.