Compare commits
2 commits
7b1262377e
...
6d24fc5b8c
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d24fc5b8c | |||
| 7488edbf80 |
3 changed files with 15 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 0.2.0a28 (2026-01-16)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- display with subconfig
|
||||||
|
|
||||||
## 0.2.0a27 (2026-01-14)
|
## 0.2.0a27 (2026-01-14)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_display"
|
name = "rougail.output_display"
|
||||||
version = "0.2.0a27"
|
version = "0.2.0a28"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail output display"
|
description = "Rougail output display"
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ class RougailOutputDisplay:
|
||||||
user_data_warnings: Optional[list] = None,
|
user_data_warnings: Optional[list] = None,
|
||||||
config_owner_is_path: bool = False,
|
config_owner_is_path: bool = False,
|
||||||
layer_datas=None,
|
layer_datas=None,
|
||||||
|
true_config=None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> None:
|
) -> None:
|
||||||
if rougailconfig is None:
|
if rougailconfig is None:
|
||||||
|
|
@ -45,6 +46,10 @@ class RougailOutputDisplay:
|
||||||
rougailconfig = RougailConfig
|
rougailconfig = RougailConfig
|
||||||
self.rougailconfig = rougailconfig
|
self.rougailconfig = rougailconfig
|
||||||
self.config = config
|
self.config = config
|
||||||
|
if true_config is None:
|
||||||
|
self.true_config = config
|
||||||
|
else:
|
||||||
|
self.true_config = true_config
|
||||||
self.root_config = root_config
|
self.root_config = root_config
|
||||||
self.layer_datas = layer_datas
|
self.layer_datas = layer_datas
|
||||||
self.config_owner_is_path = config_owner_is_path
|
self.config_owner_is_path = config_owner_is_path
|
||||||
|
|
@ -64,11 +69,11 @@ class RougailOutputDisplay:
|
||||||
def run(self) -> str:
|
def run(self) -> str:
|
||||||
self.is_mandatory = self.rougailconfig["display.mandatory"]
|
self.is_mandatory = self.rougailconfig["display.mandatory"]
|
||||||
if self.is_mandatory:
|
if self.is_mandatory:
|
||||||
ori_properties = self.config.property.exportation()
|
ori_properties = self.true_config.property.exportation()
|
||||||
self.config.property.read_write()
|
self.true_config.property.read_write()
|
||||||
if not self.user_data_errors and not self.errors:
|
if not self.user_data_errors and not self.errors:
|
||||||
self.mandatories()
|
self.mandatories()
|
||||||
self.config.property.importation(ori_properties)
|
self.true_config.property.importation(ori_properties)
|
||||||
output_format = self.rougailconfig["display.output_format"]
|
output_format = self.rougailconfig["display.output_format"]
|
||||||
output = OutPuts().get()[output_format](self.rougailconfig)
|
output = OutPuts().get()[output_format](self.rougailconfig)
|
||||||
warnings = self.user_data_warnings + self.warnings
|
warnings = self.user_data_warnings + self.warnings
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue