Changeset 12588 for main/waeup.kofa/trunk
- Timestamp:
- 11 Feb 2015, 07:48:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r12587 r12588 313 313 return payment.p_item 314 314 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 return321 322 315 def expensive_actions_allowed(self, type=None, request=None): 323 316 """Tell, whether expensive actions are currently allowed. … … 344 337 max_val = 100.0 + max_val 345 338 if mem_val.percent > max_val: 346 self._systemLoadWarning()347 339 return False 348 340 else: … … 351 343 max_val = mem_val.total + max_val 352 344 if mem_val.used > max_val: 353 self._systemLoadWarning()354 345 return False 355 346 return True
Note: See TracChangeset for help on using the changeset viewer.