can get uncalculated property + can add storage when init mixconfig
This commit is contained in:
parent
212fd5f16d
commit
358a49c0e2
|
@ -203,9 +203,13 @@ class _TiramisuOptionOptionDescription(CommonTiramisuOption):
|
||||||
return option.impl_is_optiondescription()
|
return option.impl_is_optiondescription()
|
||||||
|
|
||||||
def properties(self,
|
def properties(self,
|
||||||
only_raises=False):
|
only_raises=False,
|
||||||
|
uncalculated=False):
|
||||||
"""Get properties for an option"""
|
"""Get properties for an option"""
|
||||||
settings = self._option_bag.config_bag.context.cfgimpl_get_settings()
|
settings = self._option_bag.config_bag.context.cfgimpl_get_settings()
|
||||||
|
if uncalculated:
|
||||||
|
return settings.getproperties(self._option_bag,
|
||||||
|
uncalculated=True)
|
||||||
if not only_raises:
|
if not only_raises:
|
||||||
return settings.getproperties(self._option_bag,
|
return settings.getproperties(self._option_bag,
|
||||||
apply_requires=False)
|
apply_requires=False)
|
||||||
|
@ -1565,6 +1569,7 @@ class MetaConfig(TiramisuAPI):
|
||||||
session_id: Union[str, None]=None,
|
session_id: Union[str, None]=None,
|
||||||
persistent: bool=False,
|
persistent: bool=False,
|
||||||
optiondescription: Optional[OptionDescription]=None,
|
optiondescription: Optional[OptionDescription]=None,
|
||||||
|
storage=None,
|
||||||
display_name=None) -> None:
|
display_name=None) -> None:
|
||||||
if isinstance(children, KernelMetaConfig):
|
if isinstance(children, KernelMetaConfig):
|
||||||
config = children
|
config = children
|
||||||
|
@ -1580,7 +1585,8 @@ class MetaConfig(TiramisuAPI):
|
||||||
session_id=session_id,
|
session_id=session_id,
|
||||||
persistent=persistent,
|
persistent=persistent,
|
||||||
optiondescription=optiondescription,
|
optiondescription=optiondescription,
|
||||||
display_name=display_name)
|
display_name=display_name,
|
||||||
|
storage=storage)
|
||||||
super().__init__(config)
|
super().__init__(config)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1591,6 +1597,7 @@ class MixConfig(TiramisuAPI):
|
||||||
children: List[Config],
|
children: List[Config],
|
||||||
session_id: Optional[str]=None,
|
session_id: Optional[str]=None,
|
||||||
persistent: bool=False,
|
persistent: bool=False,
|
||||||
|
storage=None,
|
||||||
display_name: Callable=None) -> None:
|
display_name: Callable=None) -> None:
|
||||||
if isinstance(children, KernelMixConfig):
|
if isinstance(children, KernelMixConfig):
|
||||||
config = children
|
config = children
|
||||||
|
@ -1606,6 +1613,7 @@ class MixConfig(TiramisuAPI):
|
||||||
_children,
|
_children,
|
||||||
session_id=session_id,
|
session_id=session_id,
|
||||||
persistent=persistent,
|
persistent=persistent,
|
||||||
|
storage=storage,
|
||||||
display_name=display_name)
|
display_name=display_name)
|
||||||
super().__init__(config)
|
super().__init__(config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue