Compare commits

..

2 commits

9 changed files with 21 additions and 9 deletions

View file

@ -1,3 +1,9 @@
## 0.2.0a27 (2026-01-14)
### Fix
- modified value without layer
## 0.2.0a26 (2026-01-05)
### Fix

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_display"
version = "0.2.0a26"
version = "0.2.0a27"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output display"

View file

@ -278,7 +278,12 @@ class Node:
is_default = option.owner.isdefault()
option_path = option.path()
default_owner = owners.default
if self.root_config == meta_config:
added = True
true_default = is_default
else:
true_default = is_default and meta_option.owner.get() == default_owner
added = not is_default or true_default
while True:
if values and true_default and value in [None, []]:
break
@ -290,7 +295,7 @@ class Node:
loaded_from = None
else:
loaded_from = meta_option.information.get(loaded_from_key, None)
if true_default or loaded_from or force_store_value:
if added or force_store_value:
values.append(
{
"value": value,
@ -325,6 +330,7 @@ class Node:
except Exception as err:
break
true_default = is_default and meta_option.owner.get() == default_owner
added = True
meta_config = new_meta_config
if leader_index is not None:
if len(value) > leader_index:

View file

@ -1,4 +1,4 @@
> [!CAUTION]
>
> - family1
> - this variable is in fact a family: :stop_sign: [- is a family so we cannot set the value "value", it has been loading from fake user data -]
> - this variable is in fact a family: :stop_sign: [- it's a family so we cannot set the value "value", it has been loading from fake user data -]

View file

@ -1,4 +1,4 @@
> [!CAUTION]
>
> - family1
> - this variable is in fact a family: :stop_sign: <span style="color: #C23636">is a family so we cannot set the value "value", it has been loading from fake user data</span>
> - this variable is in fact a family: :stop_sign: <span style="color: #C23636">it's a family so we cannot set the value "value", it has been loading from fake user data</span>

View file

@ -1,3 +1,3 @@
🛑 Caution
┗━━ family1
 ┗━━ this variable is in fact a family: 🛑 is a family so we cannot set the value "value", it has been loading from fake user data
 ┗━━ this variable is in fact a family: 🛑 it's a family so we cannot set the value "value", it has been loading from fake user data

View file

@ -1,6 +1,6 @@
> [!CAUTION]
>
> - family1
> - this variable is in fact a family: :bell: [- is a family so we cannot set the value "value", it will be ignored when loading from fake user data -]
> - this variable is in fact a family: :bell: [- it's a family so we cannot set the value "value", it will be ignored when loading from fake user data -]
> - this variable is in fact a family
> - a true variable: :stop_sign: [- mandatory variable but has no value -]

View file

@ -1,6 +1,6 @@
> [!CAUTION]
>
> - family1
> - this variable is in fact a family: :bell: <span style="color: #EFBF04">is a family so we cannot set the value "value", it will be ignored when loading from fake user data</span>
> - this variable is in fact a family: :bell: <span style="color: #EFBF04">it's a family so we cannot set the value "value", it will be ignored when loading from fake user data</span>
> - this variable is in fact a family
> - a true variable: :stop_sign: <span style="color: #C23636">mandatory variable but has no value</span>

View file

@ -1,5 +1,5 @@
🛑 Caution
┗━━ family1
 ┣━━ this variable is in fact a family: 🔔 is a family so we cannot set the value "value", it will be ignored when loading from fake user data
 ┣━━ this variable is in fact a family: 🔔 it's a family so we cannot set the value "value", it will be ignored when loading from fake user data
 ┗━━ this variable is in fact a family
  ┗━━ a true variable: 🛑 mandatory variable but has no value