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