doc is ready for the new api refactoring
This commit is contained in:
@ -108,6 +108,7 @@ class Option(BaseInformation):
|
||||
:param validator: the name of a function wich stands for a custom
|
||||
validation of the value
|
||||
:param validator_args: the validator's parameters
|
||||
|
||||
"""
|
||||
if not valid_name(name):
|
||||
raise ValueError(_("invalid name: {0} for option").format(name))
|
||||
@ -606,14 +607,16 @@ class DomainnameOption(Option):
|
||||
|
||||
|
||||
class OptionDescription(BaseInformation):
|
||||
"""Config's schema (organisation, group) and container of Options"""
|
||||
"""Config's schema (organisation, group) and container of Options
|
||||
The `OptionsDescription` objects lives in the `tiramisu.config.Config`.
|
||||
"""
|
||||
__slots__ = ('_name', '_requires', '_cache_paths', '_group_type',
|
||||
'_properties', '_children', '_consistencies')
|
||||
|
||||
def __init__(self, name, doc, children, requires=None, properties=None):
|
||||
"""
|
||||
:param children: is a list of option descriptions (including
|
||||
``OptionDescription`` instances for nested namespaces).
|
||||
:param children: a list of options (including option descriptions)
|
||||
|
||||
"""
|
||||
if not valid_name(name):
|
||||
raise ValueError(_("invalid name: {0} for option descr").format(name))
|
||||
|
Reference in New Issue
Block a user