Changeset 13580 for main/kofacustom.nigeria/trunk/src/kofacustom
- Timestamp:
- 10 Jan 2016, 17:36:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r13579 r13580 64 64 @property 65 65 def target_url(self): 66 if self.context.p_state == 'waived': 67 return '' 68 if self.context.p_state == 'paid' \ 69 and not checkPermission('waeup.manageStudent', self.context): 66 if self.context.p_state in ('paid', 'waived'): 70 67 return '' 71 68 return self.view.url(self.view.context, self.target) … … 75 72 grok.view(OPDPApplicant) 76 73 grok.require('waeup.payApplicant') 77 78 @property79 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 74 85 75 class InterswitchPaymentRequestWebservicePageStudent(UtilityView, grok.View): … … 97 87 98 88 def update(self): 99 if self.context.p_state == 'waived': 100 self.flash(_('This ticket cannot be requeried.'), type='warning') 101 return 102 if self.context.p_state == 'paid' \ 103 and not checkPermission('waeup.manageStudent', self.context): 89 if self.context.p_state in ('paid', 'waived'): 104 90 self.flash(_('This ticket has already been paid.'), type='danger') 105 91 return … … 138 124 139 125 def update(self): 140 if self.context.p_state == 'paid' \ 141 and not checkPermission('waeup.manageApplication', self.context): 126 if self.context.p_state == 'paid': 142 127 self.flash(_('This ticket has already been paid.'), type='danger') 143 128 return
Note: See TracChangeset for help on using the changeset viewer.