class ConfDict(object): (source)
Provide helpers for ConfDict.
| Class Method | for |
Import and return a class object identified by a fully-qualified dotted name relative to the Products.zms namespace. |
| Class Method | get |
Return the global ZMS system configuration dictionary by reading system-configuration from $ZMS_HOME/etc/zms.conf. |
| Class Variable | __confdict__ |
Undocumented |
Import and return a class object identified by a fully-qualified dotted name relative to the Products.zms namespace.
The name is expected to be in the form modulename.ClassName. The module is imported with importlib.import_module and the class is retrieved with getattr.
| Parameters | |
| name:str | Dotted qualified name, e.g. 'ZMSFilterManager.ZMSFilterManager'. |
| Returns | |
| type | The class object found at the given name. |
Return the global ZMS system configuration dictionary by reading system-configuration from $ZMS_HOME/etc/zms.conf.
On first call the dictionary is built by reading etc/zms.conf from both the ZMS product home and the current INSTANCE_HOME. All section.option pairs found in the INI-formatted file are merged into a flat dict. Subsequent calls return the already-built dict from the class variable __confdict__ without re-reading the files.
| Returns | |
| dict | Merged configuration dictionary from all zms.conf files. |