Package Products :: Package ZenRelations :: Module ZenPropertyManager |
[hide private]
[frames] | no frames]

# Module ZenPropertyManager

source code

Classes | [hide private]
PropertyDescriptor Transforms the property value based on its type.
ZenPropertyDoesNotExist
ZenPropertyManager ZenPropertyManager adds keyedselection type to PropertyManager.
IdentityTransformer A do-nothing transformer to use as the default

Functions | [hide private]
monkeypatchDescriptors(zprops, transformerFactories) monkeypatch ZenPropertyManager adding an instance of the descriptor class for each of the zProperties | source code
setDescriptors(transformerFactories) Set the property descriptors on the ZenPropertyManager class. | source code
updateDescriptors(type, transformer) Update all descriptors with the specified type to use the specified transformer. | source code

Variables | [hide private]
| iszprop = `re.compile("^z[A-Z]").search`
| log = `logging.getLogger('zen.PropertyManager')`
| Z_PROPERTIES = `[('zPythonClass', '', 'string'), ('zProdStateTh`...``

Function Details | [hide private]

### setDescriptors(transformerFactories) | source code
Set the property descriptors on the ZenPropertyManager class. The transformerFactories parameter is a dictionary that maps a property type to a callable factory that produces instances with transformForGet and transformForSet methods.

Variables Details | [hide private]

  ### Z_PROPERTIES Value:
      [('zPythonClass', '', 'string'), ('zProdStateThreshold', 300, 'int'),
      ('zIfDescription', False, 'boolean'), ('zSnmpCommunities', ['public',
      'private'], 'lines'), ('zSnmpCommunity', 'public', 'string'), ('zSnmpP
      ort', 161, 'int'), ('zSnmpVer', 'v1', 'string'), ('zSnmpTries', 2, 'in
      t'), ('zSnmpTimeout', 2.5, 'float'), ('zSnmpEngineId', '', 'string'),
      ('zSnmpSecurityName', '', 'string'), ('zSnmpAuthPassword', '', 'passwo
      rd'), ('zSnmpPrivPassword', '', 'password'), ('zSnmpAuthType', '', 'st
      ring'), ('zSnmpPrivType', '', 'string'), ('zSnmpCollectionInterval', 3
      ...