changeset 406:5286df5aeefe

Allow a jailed configuration to return its base configuration via a property
author Franz Glasner <f.glasner@feldmann-mg.com>
date Fri, 19 Nov 2021 13:27:41 +0100
parents af367e1d0950
children 1bec7f5fafe8
files configmix/config.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/config.py	Fri Nov 19 13:26:53 2021 +0100
+++ b/configmix/config.py	Fri Nov 19 13:27:41 2021 +0100
@@ -726,6 +726,11 @@
             self._pathstr = ''
         self.rebind(config)
 
+    @property
+    def base(self):
+        """Ask for the base (aka parent) configuration"""
+        return self._base
+
     def rebind(self, new_base):
         """Bind the jail to a new unjailed configuration `new_base`.