non mandatory import error

This commit is contained in:
gwen 2012-09-11 16:32:24 +02:00
parent fb2aa0ed67
commit 99df5bbd79
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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'}