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)
### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail"
version = "1.2.0a13"
version = "1.2.0a12"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
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"
]
self.structurals = rougailconfig["step.structural"]
try:
self.user_datas = rougailconfig["step.user_data"]
except:
self.user_datas = []
self.user_datas = rougailconfig["step.user_data"]
try:
self.output = rougailconfig["step.output"]
except:

View file

@ -452,7 +452,7 @@ class _VariableCalculation(Calculation):
)
if variable and not isinstance(variable, objectspace.variable):
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)
else:
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(
self,
path: str,
# identifier_path: str,
current_path: str,
version: str,
namespace: str,
@ -144,7 +145,9 @@ class Paths:
if "{{ suffix }}" in path:
path = path.replace("{{ suffix }}", "{{ identifier }}")
elif not path in self._data:
new_path = parent_path = current_path = None
current_path = None
parent_path = None
new_path = current_path
identifiers = []
for name in path.split("."):
if current_path: