Ignore:
Timestamp:
6 Nov 2015, 05:43:37 (9 years ago)
Author:
Henrik Bettermann
Message:

Implement portal maintenance mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r13365 r13394  
    11991199        if self.context.expired:
    12001200            self.flash(_('Outside application period.'), type='warning')
     1201            self.redirect(self.url(self.context))
     1202            return
     1203        blocker = grok.getSite()['configuration'].maintmode_enabled_by
     1204        if blocker:
     1205            self.flash(_('The portal is in maintenance mode '
     1206                        'and registration temporarily disabled.'),
     1207                       type='warning')
    12011208            self.redirect(self.url(self.context))
    12021209            return
Note: See TracChangeset for help on using the changeset viewer.