class documentation
class ZMSSysConf(ZMSItem.ZMSItem): (source)
Constructor: ZMSSysConf()
Implements interfaces: Products.zms.IZMSRepositoryProvider.IZMSRepositoryProvider
System configuration container for a ZMS instance. Stores key/value configuration properties in __attr_conf_dict__ and implements IZMSRepositoryProvider for repository persistence.
| Method | __init__ |
Initialise a new ZMSSysConf instance with id 'sys_conf'. |
| Method | del |
Delete a configuration property by key. |
| Method | get |
Return the full configuration properties dictionary. |
| Method | get |
Return a single configuration property value. |
| Method | initialize |
Hook for post-creation initialization (currently a no-op). |
| Method | provide |
Provide configuration data for the repository export. |
| Method | set |
Replace the full configuration properties dictionary. |
| Method | set |
Set a single configuration property. If value is None, the property is deleted. Clears the request buffer for Portal keys. |
| Method | update |
Update configuration from repository import data. |
| Class Variable | meta |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Instance Variable | id |
Undocumented |
Return a single configuration property value.
| Parameters | |
| key:str | Property key. |
| default:any | Default value returned when key does not exist. |
| Returns | |
| any | Property value or default. |
Provide configuration data for the repository export.
| Parameters | |
| ids:list or None | List of IDs to export. Expected values include 'sys_conf'; None exports all valid ids. |
| Returns | |
| dict | Dictionary of repository data keyed by id |
| See Also | |
| IZMSRepositoryProvider | |
Replace the full configuration properties dictionary.
| Parameters | |
| properties:dict | New configuration properties mapping. Expected value is a plain dict with string keys. |
| Returns | |
| None | None |
Set a single configuration property. If value is None, the property is deleted. Clears the request buffer for Portal keys.
| Parameters | |
| key:str | Property key. |
| value:any | None | Property value. Use None to delete the key. |
| Returns | |
| None | None |