Update configuration provider docblocks

This commit is contained in:
Roman Mogilatov 2016-12-02 14:57:37 +02:00
parent 3f8e53aa9c
commit b643acfbc5
2 changed files with 204 additions and 187 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,24 @@ from .utils cimport (
cdef class Configuration(Provider): cdef class Configuration(Provider):
"""Configuration provider.""" """Configuration provider.
Configudation provider helps with implementing late static binding of
configuration options - use first, set last.
.. code-block:: python
config = Configuration('config')
print(config.section1.option1()) # None
print(config.section1.option2()) # None
config.update({'section1': {'option1': 1,
'option2': 2}})
print(config.section1.option1()) # 1
print(config.section1.option2()) # 2
"""
def __init__(self, name): def __init__(self, name):
"""Initializer.""" """Initializer."""