Ignore:
Timestamp:
5 May 2017, 08:02:09 (8 years ago)
Author:
Henrik Bettermann
Message:

Do not allow to create more than 10 students with a single request to
avoid a timeout of Nginx/Apache?.

File:
1 edited

Legend:

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

    r14578 r14682  
    440440            child_id = [child_id]
    441441        created = []
     442        if len(child_id) > 10 and self.request.principal.id != 'admin':
     443            self.flash(_('A maximum of 10 applicants can be selected!'),
     444                       type='warning')
     445            self.redirect(self.url(self.context, '@@manage')+'#tab2')
     446            return
    442447        for id in child_id:
    443448            success, msg = self.context[id].createStudent(view=self)
Note: See TracChangeset for help on using the changeset viewer.