Changeset 13396 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 6 Nov 2015, 10:10:09 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r13394 r13396 514 514 515 515 def update(self): 516 blocker = grok.getSite()['configuration'].maintmode_enabled_by 517 if blocker: 518 self.flash(_('The portal is in maintenance mode. ' 519 'The contact form is temporarily disabled.'), 520 type='warning') 521 self.redirect(self.url(self.context)) 522 return 516 523 super(EnquiriesFormPage, self).update() 517 524 # Handle captcha … … 2529 2536 2530 2537 def update(self): 2538 blocker = grok.getSite()['configuration'].maintmode_enabled_by 2539 if blocker: 2540 self.flash(_('The portal is in maintenance mode. ' 2541 'Password request forms are temporarily disabled.'), 2542 type='warning') 2543 self.redirect(self.url(self.context)) 2544 return 2531 2545 # Handle captcha 2532 2546 self.captcha = getUtility(ICaptchaManager).getCaptcha() -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r13350 r13396 2784 2784 2785 2785 def update(self): 2786 blocker = grok.getSite()['configuration'].maintmode_enabled_by 2787 if blocker: 2788 self.flash(_('The portal is in maintenance mode. ' 2789 'Password request forms are temporarily disabled.'), 2790 type='warning') 2791 self.redirect(self.url(self.context)) 2792 return 2786 2793 # Handle captcha 2787 2794 self.captcha = getUtility(ICaptchaManager).getCaptcha()
Note: See TracChangeset for help on using the changeset viewer.