diff --git a/doc/glossary.txt b/doc/glossary.txt index e041090..6adf36a 100644 --- a/doc/glossary.txt +++ b/doc/glossary.txt @@ -60,6 +60,11 @@ glossary always know who has modified it. It's the owner of the option, see :doc:`status` for more details. +**option with properties** + + an option wich has property like 'hidden' or 'disabled' is an option + wich has restricted acces rules + **hidden option** a hidden option has a different behaviour on regards to the access diff --git a/doc/status.txt b/doc/status.txt index 695d1fb..7c5e7d7 100644 --- a/doc/status.txt +++ b/doc/status.txt @@ -58,7 +58,7 @@ Restricted access to an `Option()` ----------------------------------- Configuration options access statuses are defined at configuration level -that corresponds to theses :api:`option.Option()`'s attribute: +that corresponds to the :api:`option.Option()`'s `properties` attribute. **hidden** @@ -92,21 +92,6 @@ corresponding convenience API provided: `enable()`: set the `disabled` attribute to `False` -.. - mode - - a mode is `normal` or `expert`, just a category of `Option()` or - group wich determines if an option is easy to choose or not, - available methods are: - - `get_mode()`: - returns the current mode - - `set_mode(mode)`: - sets a new mode - - see it in :api:`option.ModeBaseType` - Value owners ------------- diff --git a/tiramisu/config.py b/tiramisu/config.py index f583c48..8b63fbb 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -435,16 +435,16 @@ class Config(object): # hung up on freeze, hidden and disabled concepts self.cfgimpl_freeze() rootconfig = self._cfgimpl_get_toplevel() - rootconfig._cfgimpl_hidden = False - rootconfig._cfgimpl_disabled = True + rootconfig.cfgimpl_hide() + rootconfig.cfgimpl_disable() rootconfig._cfgimpl_mandatory = True def cfgimpl_read_write(self): # hung up on freeze, hidden and disabled concepts self.cfgimpl_unfreeze() rootconfig = self._cfgimpl_get_toplevel() - rootconfig._cfgimpl_hidden = True - rootconfig._cfgimpl_disabled = True + rootconfig.cfgimpl_hide() + rootconfig.cfgimpl_disable() rootconfig._cfgimpl_mandatory = False # ____________________________________________________________ def getkey(self):