Compare commits
2 commits
7fca8e9d62
...
aa774cbce9
| Author | SHA1 | Date | |
|---|---|---|---|
| aa774cbce9 | |||
| b48328d021 |
3 changed files with 8 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tiramisu"
|
name = "tiramisu"
|
||||||
version = "5.2.0a11"
|
version = "5.2.0a12"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "an options controller tool"
|
description = "an options controller tool"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "5.2.0a11"
|
__version__ = "5.2.0a12"
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ class DynOptionDescription(OptionDescription):
|
||||||
parent: "SubConfig",
|
parent: "SubConfig",
|
||||||
*,
|
*,
|
||||||
uncalculated: bool = False,
|
uncalculated: bool = False,
|
||||||
|
from_display_name: bool = False,
|
||||||
) -> List[str]:
|
) -> List[str]:
|
||||||
"""get dynamic identifiers"""
|
"""get dynamic identifiers"""
|
||||||
subconfig = parent.get_child(
|
subconfig = parent.get_child(
|
||||||
|
|
@ -129,11 +130,15 @@ class DynOptionDescription(OptionDescription):
|
||||||
values = []
|
values = []
|
||||||
if __debug__:
|
if __debug__:
|
||||||
if not isinstance(values, list):
|
if not isinstance(values, list):
|
||||||
|
if not from_display_name:
|
||||||
|
name = self.impl_get_display_name(subconfig, with_quote=True)
|
||||||
|
else:
|
||||||
|
name = self.impl_getname()
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
_(
|
_(
|
||||||
"DynOptionDescription identifiers for option {0}, is not a list ({1})"
|
"DynOptionDescription identifiers for option {0}, is not a list ({1})"
|
||||||
).format(
|
).format(
|
||||||
self.impl_get_display_name(subconfig, with_quote=True), values
|
name, values
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
values_ = []
|
values_ = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue