From 99df5bbd79f0cb67378ed374f7083212865a1dd8 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 11 Sep 2012 16:32:24 +0200 Subject: [PATCH] non mandatory import error --- tiramisu/config.py | 4 ++-- tiramisu/option.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tiramisu/config.py b/tiramisu/config.py index 7218b94..fd19b82 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -455,11 +455,11 @@ class Config(object): def is_frozen(self): # it should be the same value as self._cfgimpl_frozen... rootconfig = self._cfgimpl_get_toplevel() - return rootconfig.__dict__['_cfgimpl_frozen'] + return rootconfig._cfgimpl_frozen def is_mandatory(self): rootconfig = self._cfgimpl_get_toplevel() - return rootconfig.__dict__['_cfgimpl_mandatory'] + return rootconfig._cfgimpl_mandatory def cfgimpl_read_only(self): # hung up on freeze, hidden and disabled concepts diff --git a/tiramisu/option.py b/tiramisu/option.py index c9a2533..2c43cf0 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -22,7 +22,7 @@ # ____________________________________________________________ from tiramisu.basetype import HiddenBaseType, DisabledBaseType from tiramisu.error import (ConfigError, ConflictConfigError, NotFoundError, - RequiresError, RequirementRecursionError) + RequiresError, RequirementRecursionError, MandatoryError) available_actions = ['hide', 'show', 'enable', 'disable'] reverse_actions = {'hide': 'show', 'show': 'hide', 'disable':'enable', 'enable': 'disable'}