Changeset 13579 for main/kofacustom.nigeria/trunk/src/kofacustom
- Timestamp:
- 10 Jan 2016, 17:21:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r13578 r13579 76 76 grok.require('waeup.payApplicant') 77 77 78 @property 79 def target_url(self): 80 if self.context.p_state == 'paid' \ 81 and not checkPermission('waeup.manageApplication', self.context): 82 return '' 83 return self.view.url(self.view.context, self.target) 84 78 85 class InterswitchPaymentRequestWebservicePageStudent(UtilityView, grok.View): 79 86 """ Request webservice view for the CollegePAY gateway … … 90 97 91 98 def update(self): 92 93 99 if self.context.p_state == 'waived': 94 100 self.flash(_('This ticket cannot be requeried.'), type='warning') … … 96 102 if self.context.p_state == 'paid' \ 97 103 and not checkPermission('waeup.manageStudent', self.context): 98 self.flash(_('This ticket has already been paid.'), type=' warning')104 self.flash(_('This ticket has already been paid.'), type='danger') 99 105 return 100 106 student = self.context.student … … 132 138 133 139 def update(self): 134 if self.context.p_state == 'paid': 140 if self.context.p_state == 'paid' \ 141 and not checkPermission('waeup.manageApplication', self.context): 135 142 self.flash(_('This ticket has already been paid.'), type='danger') 136 143 return
Note: See TracChangeset for help on using the changeset viewer.