class documentation

class ConfDict(object): (source)

View In Hierarchy

Provide helpers for ConfDict.

Class Method forName 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
@classmethod
def forName(cls, name): (source)

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:strDotted qualified name, e.g. 'ZMSFilterManager.ZMSFilterManager'.
Returns
typeThe class object found at the given name.
@classmethod
def get(cls): (source)

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
dictMerged configuration dictionary from all zms.conf files.
__confdict__ = (source)

Undocumented