non mandatory import error
This commit is contained in:
parent
fb2aa0ed67
commit
99df5bbd79
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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'}
|
||||
|
|
Loading…
Reference in a new issue