Ignore:
Timestamp:
11 Feb 2015, 07:48:09 (10 years ago)
Author:
Henrik Bettermann
Message:

Undo changes of previous revision.

File:
1 edited

Legend:

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

    r12587 r12588  
    313313        return payment.p_item
    314314
    315     def _systemLoadWarning(self):
    316         """Send email to system admin if limits are exceeded for the first time.
    317 
    318         To be configured in custom packages.
    319         """
    320         return
    321 
    322315    def expensive_actions_allowed(self, type=None, request=None):
    323316        """Tell, whether expensive actions are currently allowed.
     
    344337                    max_val = 100.0 + max_val
    345338                if mem_val.percent > max_val:
    346                     self._systemLoadWarning()
    347339                    return False
    348340            else:
     
    351343                    max_val = mem_val.total + max_val
    352344                if mem_val.used > max_val:
    353                     self._systemLoadWarning()
    354345                    return False
    355346        return True
Note: See TracChangeset for help on using the changeset viewer.