Ignore:
Timestamp:
6 Nov 2015, 10:10:09 (9 years ago)
Author:
Henrik Bettermann
Message:

Do also block contact form and password request forms.

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  
    514514
    515515    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
    516523        super(EnquiriesFormPage, self).update()
    517524        # Handle captcha
     
    25292536
    25302537    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
    25312545        # Handle captcha
    25322546        self.captcha = getUtility(ICaptchaManager).getCaptcha()
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r13350 r13396  
    27842784
    27852785    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
    27862793        # Handle captcha
    27872794        self.captcha = getUtility(ICaptchaManager).getCaptcha()
Note: See TracChangeset for help on using the changeset viewer.