Changeset 13396 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 6 Nov 2015, 10:10:09 (9 years ago)
- File:
-
- 1 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()
Note: See TracChangeset for help on using the changeset viewer.