From 525aee85f2ea43ae6b3b53543361bb72145e2fbb Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 27 Jul 2012 09:54:32 +0200 Subject: [PATCH] mandatory warning for the toplevel --- tiramisu/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tiramisu/config.py b/tiramisu/config.py index 41944f7..91720f7 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -548,11 +548,11 @@ def make_dict(config, flatten=False): return options def mandatory_warnings(config): - mandatory = config._cfgimpl_mandatory - config._cfgimpl_mandatory = True + mandatory = config._cfgimpl_get_toplevel()._cfgimpl_mandatory + config._cfgimpl_get_toplevel()._cfgimpl_mandatory = True for path in config.getpaths(mandatory=True): try: value = getattr(config, path) except MandatoryError: yield path - config._cfgimpl_mandatory = mandatory + config._cfgimpl_get_toplevel()._cfgimpl_mandatory = mandatory