non mandatory import error
This commit is contained in:
parent
fb2aa0ed67
commit
99df5bbd79
|
@ -455,11 +455,11 @@ class Config(object):
|
||||||
def is_frozen(self):
|
def is_frozen(self):
|
||||||
# it should be the same value as self._cfgimpl_frozen...
|
# it should be the same value as self._cfgimpl_frozen...
|
||||||
rootconfig = self._cfgimpl_get_toplevel()
|
rootconfig = self._cfgimpl_get_toplevel()
|
||||||
return rootconfig.__dict__['_cfgimpl_frozen']
|
return rootconfig._cfgimpl_frozen
|
||||||
|
|
||||||
def is_mandatory(self):
|
def is_mandatory(self):
|
||||||
rootconfig = self._cfgimpl_get_toplevel()
|
rootconfig = self._cfgimpl_get_toplevel()
|
||||||
return rootconfig.__dict__['_cfgimpl_mandatory']
|
return rootconfig._cfgimpl_mandatory
|
||||||
|
|
||||||
def cfgimpl_read_only(self):
|
def cfgimpl_read_only(self):
|
||||||
# hung up on freeze, hidden and disabled concepts
|
# hung up on freeze, hidden and disabled concepts
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# ____________________________________________________________
|
# ____________________________________________________________
|
||||||
from tiramisu.basetype import HiddenBaseType, DisabledBaseType
|
from tiramisu.basetype import HiddenBaseType, DisabledBaseType
|
||||||
from tiramisu.error import (ConfigError, ConflictConfigError, NotFoundError,
|
from tiramisu.error import (ConfigError, ConflictConfigError, NotFoundError,
|
||||||
RequiresError, RequirementRecursionError)
|
RequiresError, RequirementRecursionError, MandatoryError)
|
||||||
available_actions = ['hide', 'show', 'enable', 'disable']
|
available_actions = ['hide', 'show', 'enable', 'disable']
|
||||||
reverse_actions = {'hide': 'show', 'show': 'hide',
|
reverse_actions = {'hide': 'show', 'show': 'hide',
|
||||||
'disable':'enable', 'enable': 'disable'}
|
'disable':'enable', 'enable': 'disable'}
|
||||||
|
|
Loading…
Reference in New Issue