Mercurial > hgrepos > Python > libs > ConfigMix
changeset 194:0d8dd58afc44
Docu: Enhanced the custom loader section somewhat
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 20:21:12 +0200 |
| parents | 70c4f81ac58c |
| children | 28e6c1413947 |
| files | doc/introduction.rst |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/introduction.rst Fri May 03 20:20:05 2019 +0200 +++ b/doc/introduction.rst Fri May 03 20:21:12 2019 +0200 @@ -360,7 +360,7 @@ configmix.clear_assoc() configmix.set_assoc("*.cfg", configmix.get_default_assoc("*.ini")) - Just a new configuration file style:: + Only a new configuration file style:: def my_custom_loader(filename): ... @@ -369,3 +369,6 @@ configmix.mode_loaders["myconfmode"] = my_custom_loader configmix.clear_assoc() configmix.set_assoc("*.my.configuration", "myconfmode") + + If :py:func:`~configmix.clear_assoc` will not be called then just a *new* + configuration file style will be installed.
