# HG changeset patch # User Franz Glasner # Date 1638865418 -3600 # Node ID e60b72df15deaa8baf839acbca699064f1a445d5 # Parent 5aba893d0dbb0c160307e42b1320187eecac09ec Introduction into sub-jails diff -r 5aba893d0dbb -r e60b72df15de docs/introduction.rst --- a/docs/introduction.rst Thu Dec 02 09:32:01 2021 +0100 +++ b/docs/introduction.rst Tue Dec 07 09:23:38 2021 +0100 @@ -581,6 +581,21 @@ given `root path` in order to get the effective key into the base configuration. +It is possible to get a jailed configuration from an already jailed +configuration:: + + import configmix + + config = configmix.load("conf10.py") + value = config.getvar_s("tree1.tree2.key4") + + jailed_config1 = config.jailed(rootpath="tree1") + + jailed_config2 = jailed_config2.jailed(rootpath="tree2") + jvalue2 = jailed_config.getvarl_s("key4") + + assert value == jvalue2 == "get this as `tree1.tree2.key4'" + Custom filename extensions and custom loaders ---------------------------------------------