- Timestamp:
- 7 Nov 2019, 15:43:51 (5 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py
r15755 r15770 51 51 @property 52 52 def target_url(self): 53 if not module_activated(self.context.__parent__.__parent__.year): 53 if not module_activated( 54 self.context.__parent__.__parent__.year, self.context): 54 55 return '' 55 56 if self.context.p_state != 'unpaid': … … 68 69 @property 69 70 def target_url(self): 70 if not module_activated(self.context.__parent__.__parent__.year): 71 if not module_activated( 72 self.context.__parent__.__parent__.year, self.context): 71 73 return '' 72 74 if self.context.p_state in ('paid', 'waived'): … … 85 87 @property 86 88 def target_url(self): 87 if not module_activated(self.context.__parent__.__parent__.year): 89 if not module_activated( 90 self.context.__parent__.__parent__.year, self.context): 88 91 return '' 89 92 if self.context.p_state != 'paid' \ … … 107 110 108 111 def update(self): 109 if not module_activated(self.context.__parent__.__parent__.year): 112 if not module_activated( 113 self.context.__parent__.__parent__.year, self.context): 110 114 return 111 115 if self.context.p_state in ('paid', 'waived'): … … 159 163 160 164 def update(self): 161 if not module_activated(self.context.__parent__.__parent__.year): 165 if not module_activated( 166 self.context.__parent__.__parent__.year, self.context): 162 167 return 163 168 if self.context.p_state != 'paid' \ … … 272 277 273 278 def update(self): 274 if not module_activated(self.context.__parent__.__parent__.year): 279 if not module_activated( 280 self.context.__parent__.__parent__.year, self.context): 275 281 return 276 282 self.orderId = self.context.p_id -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py
r15755 r15770 38 38 grok.templatedir('browser_templates') 39 39 40 def module_activated(session): 40 def module_activated(session, payment): 41 if payment.r_company and payment.r_company != 'interswitch': 42 return False 41 43 try: 42 44 return getattr(grok.getSite()['configuration'][str(session)], … … 58 60 @property 59 61 def target_url(self): 60 if not module_activated(self.context.student.current_session): 62 if not module_activated( 63 self.context.student.current_session, self.context): 61 64 return '' 62 65 if self.context.p_state != 'unpaid': … … 75 78 @property 76 79 def target_url(self): 77 if not module_activated(self.context.student.current_session): 80 if not module_activated( 81 self.context.student.current_session, self.context): 78 82 return '' 79 83 if self.context.p_state in ('paid', 'waived'): … … 93 97 @property 94 98 def target_url(self): 95 if not module_activated(self.context.student.current_session): 99 if not module_activated( 100 self.context.student.current_session, self.context): 96 101 return '' 97 102 if self.context.p_state != 'paid' \ … … 115 120 116 121 def update(self): 117 if not module_activated(self.context.student.current_session): 122 if not module_activated( 123 self.context.student.current_session, self.context): 118 124 return 119 125 if self.context.p_state in ('paid', 'waived'): … … 167 173 168 174 def update(self): 169 if not module_activated(self.context.student.current_session): 175 if not module_activated( 176 self.context.student.current_session, self.context): 170 177 return 171 178 if self.context.p_state != 'paid' \ … … 289 296 290 297 def update(self): 291 if not module_activated(self.context.student.current_session): 298 if not module_activated( 299 self.context.student.current_session, self.context): 292 300 return 293 301 self.orderId = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.