class ConfigDefinitionByClass(ConfigDefinition): (source)
Definition that enforces the value has to have a certain class
Classes that have a new_from_zim_config() method can convert values to the desired class.
Method | __eq__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | check |
No summary |
Method | tostring |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | klass |
Undocumented |
Inherited from ConfigDefinition
:
Method | __ne__ |
Undocumented |
Instance Variable | allow_empty |
Undocumented |
Instance Variable | default |
Undocumented |
Method | _check_allow_empty |
Undocumented |
Method | _eval_string |
Undocumented |
zim.config.dicts.ConfigDefinition.check
Returns | |
(converted) value if valid | |
Raises | |
ValueError | if value is invalid and can not be converted |