Changeset 12778 for main


Ignore:
Timestamp:
17 Mar 2015, 08:15:08 (10 years ago)
Author:
Henrik Bettermann
Message:

Show 'high system load' warning also when exporting student data.

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

Legend:

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

    r12632 r12778  
    32123212        if START is None:
    32133213            return
     3214        utils = queryUtility(IKofaUtils)
     3215        if not utils.expensive_actions_allowed():
     3216            self.flash(_(
     3217                "Currently, exporters cannot be started due to high "
     3218                "system load. Please try again later."), type='danger')
     3219            return
    32143220        if payments_start or payments_end:
    32153221            date_format = '%d/%m/%Y'
     
    33063312        if START is None:
    33073313            return
     3314        utils = queryUtility(IKofaUtils)
     3315        if not utils.expensive_actions_allowed():
     3316            self.flash(_(
     3317                "Currently, exporters cannot be started due to high "
     3318                "system load. Please try again later."), type='danger')
     3319            return
    33083320        try:
    33093321            ids = students.replace(',', ' ').split()
     
    33853397        self._set_exporter_values()
    33863398        if START is None:
     3399            return
     3400        utils = queryUtility(IKofaUtils)
     3401        if not utils.expensive_actions_allowed():
     3402            self.flash(_(
     3403                "Currently, exporters cannot be started due to high "
     3404                "system load. Please try again later."), type='danger')
    33873405            return
    33883406        if session == 'all':
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/paymentsmanagepage.pt

    r11432 r12778  
    2020         <td>
    2121          <input type="checkbox"
    22                 name="val_id"
    23                 tal:attributes="value cl/__name__"
     22            name="val_id"
     23            tal:attributes="value cl/__name__"
    2424         tal:condition="python: not view.unremovable(cl)" />
    2525        </td>
Note: See TracChangeset for help on using the changeset viewer.