Changeset 11800


Ignore:
Timestamp:
23 Sep 2014, 15:53:27 (10 years ago)
Author:
uli
Message:

Fix KofaUtils? (interface), add SYSTEM_MAX_LOAD dict.

File:
1 edited

Legend:

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

    r11575 r11800  
    9393        }
    9494
     95    # A list of phone prefixes (order num, country, prefix).
     96    # Items with same order num will be sorted alphabetically.
     97    # The lower the order num, the higher the precedence.
     98    INT_PHONE_PREFIXES = [
     99        (99, _('Germany'), '49'),
     100        ( 1, _('Nigeria'), '234'),
     101        (99, _('U.S.'), '1'),
     102        ]
     103
    95104    #: A function to return
    96105    @classmethod
     
    187196        'Postgraduate Full-Time':('pg_ft',),
    188197        'Postgraduate Part-Time':('pg_pt',),
     198        }
     199
     200    #: Set positive number for allowed max, negative for required min
     201    #: avail.
     202    #:
     203    #: Use integer for bytes value, float for percent
     204    #: value. `cpu-load`, of course, accepts float values only.
     205    #: `swap-mem` = Swap Memory, `virt-mem` = Virtual Memory,
     206    #: `phys-mem` = Physical Memory, `cpu-load` = CPU load in percent.
     207    SYSTEM_MAX_LOAD = {
     208        'swap-mem': None,
     209        'virt-mem': None,
     210        'phys-mem': None,
     211        'cpu-load': 100.0,
    189212        }
    190213
Note: See TracChangeset for help on using the changeset viewer.