Compare commits

..

No commits in common. "af65ad1dc6dd74a442b1fc2c710d01c878a181b4" and "26541410022bef10a053cec9d60e48f74ec26314" have entirely different histories.

5 changed files with 7 additions and 13 deletions

View file

@ -1,9 +1,3 @@
## 1.2.0a13 (2025-03-27)
### Fix
- allow no user_datas installation (for example to generate doc)
## 1.2.0a12 (2025-03-19) ## 1.2.0a12 (2025-03-19)
### Feat ### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail" name = "rougail"
version = "1.2.0a13" version = "1.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 = "A consistency handling system that was initially designed in the configuration management" description = "A consistency handling system that was initially designed in the configuration management"

View file

@ -178,10 +178,7 @@ class ParserVariable:
"structural_commandline.add_extra_options" "structural_commandline.add_extra_options"
] ]
self.structurals = rougailconfig["step.structural"] self.structurals = rougailconfig["step.structural"]
try: self.user_datas = rougailconfig["step.user_data"]
self.user_datas = rougailconfig["step.user_data"]
except:
self.user_datas = []
try: try:
self.output = rougailconfig["step.output"] self.output = rougailconfig["step.output"]
except: except:

View file

@ -452,7 +452,7 @@ class _VariableCalculation(Calculation):
) )
if variable and not isinstance(variable, objectspace.variable): if variable and not isinstance(variable, objectspace.variable):
if isinstance(variable, objectspace.family): if isinstance(variable, objectspace.family):
msg = f'a variable "{variable.path}" is needs in attribute "{self.attribute_name}" for "{self.path}" but it\'s a family' msg = f'the variable "{variable.path}" is in fact a family in attribute "{self.attribute_name}" for "{self.path}"'
raise DictConsistencyError(msg, 47, self.xmlfiles) raise DictConsistencyError(msg, 47, self.xmlfiles)
else: else:
msg = f'unknown object "{variable}" in attribute "{self.attribute_name}" for "{self.path}"' msg = f'unknown object "{variable}" in attribute "{self.attribute_name}" for "{self.path}"'

View file

@ -74,6 +74,7 @@ class Paths:
def get_with_dynamic( def get_with_dynamic(
self, self,
path: str, path: str,
# identifier_path: str,
current_path: str, current_path: str,
version: str, version: str,
namespace: str, namespace: str,
@ -144,7 +145,9 @@ class Paths:
if "{{ suffix }}" in path: if "{{ suffix }}" in path:
path = path.replace("{{ suffix }}", "{{ identifier }}") path = path.replace("{{ suffix }}", "{{ identifier }}")
elif not path in self._data: elif not path in self._data:
new_path = parent_path = current_path = None current_path = None
parent_path = None
new_path = current_path
identifiers = [] identifiers = []
for name in path.split("."): for name in path.split("."):
if current_path: if current_path: