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(dmd) 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]").match`
| log = `logging.getLogger('zen.PropertyManager')`
| Z_PROPERTIES = `[('zPythonClass', '', 'string'), ('zProdStateTh`...``

Function Details | [hide private]

### setDescriptors(dmd) | 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', 'v2c', 'string'), ('zSnmpTries', 6, 'i
      nt'), ('zSnmpTimeout', 1, 'float'), ('zSnmpEngineId', '', 'string'), (
      'zSnmpSecurityName', '', 'string'), ('zSnmpAuthPassword', '', 'passwor
      d'), ('zSnmpPrivPassword', '', 'password'), ('zSnmpAuthType', '', 'str
      ing'), ('zSnmpPrivType', '', 'string'), ('zSnmpCollectionInterval', 30
      ...