Changeset 14835 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 4 Sep 2017, 16:50:20 (7 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r14834 r14835 296 296 return """ 297 297 <br /><br /><br /><br /><font size='12'> 298 Your JUPEB results are as follows:299 <br /><br />300 298 <strong>%s</strong> 301 299 </font> … … 309 307 310 308 def update(self): 311 if not self.context.flash_notice or self.context.faccode != 'JUPEB': 309 if not self.context.flash_notice or self.context.faccode != 'JUPEB' \ 310 or not 'results' in self.context.flash_notice.lower(): 312 311 self.flash(_('Forbidden'), type="warning") 313 312 self.redirect(self.url(self.context)) -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r14834 r14835 122 122 @property 123 123 def target_url(self): 124 if self.context.flash_notice and self.context.faccode == 'JUPEB': 124 if self.context.flash_notice and self.context.faccode == 'JUPEB' \ 125 and 'results' in self.context.flash_notice.lower(): 125 126 return self.view.url(self.view.context, self.target) 126 127 return False
Note: See TracChangeset for help on using the changeset viewer.