comparison configmix/config.py @ 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 3c95faa91dad
comparison
equal deleted inserted replaced
405:af367e1d0950 406:5286df5aeefe
724 + Configuration._HIER_SEPARATOR 724 + Configuration._HIER_SEPARATOR
725 else: 725 else:
726 self._pathstr = '' 726 self._pathstr = ''
727 self.rebind(config) 727 self.rebind(config)
728 728
729 @property
730 def base(self):
731 """Ask for the base (aka parent) configuration"""
732 return self._base
733
729 def rebind(self, new_base): 734 def rebind(self, new_base):
730 """Bind the jail to a new unjailed configuration `new_base`. 735 """Bind the jail to a new unjailed configuration `new_base`.
731 736
732 The new configuration base also must have an existing path to 737 The new configuration base also must have an existing path to
733 the root. 738 the root.