Changeset 14682


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?.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r14648 r14682  
    441.6.dev0 (unreleased)
    55=======================
     6
     7* Do not allow to create more than 10 students with a single request to
     8  avoid a timeout of Nginx/Apache.
    69
    710* Redirect to manage page after editing of certificate courses.
  • 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.