Compare commits
No commits in common. "6d24fc5b8ccbf92714f5d486c49a20f12b0c027a" and "7b1262377e99da55ea8773f33dd1b66f0e90c7de" have entirely different histories.
6d24fc5b8c
...
7b1262377e
3 changed files with 4 additions and 15 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
## 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.0a28"
|
version = "0.2.0a27"
|
||||||
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,7 +38,6 @@ 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:
|
||||||
|
|
@ -46,10 +45,6 @@ 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
|
||||||
|
|
@ -69,11 +64,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.true_config.property.exportation()
|
ori_properties = self.config.property.exportation()
|
||||||
self.true_config.property.read_write()
|
self.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.true_config.property.importation(ori_properties)
|
self.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