Compare commits

..

2 commits

5 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,9 @@
## 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.0a12"
version = "1.2.0a13"
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,7 +178,10 @@ class ParserVariable:
"structural_commandline.add_extra_options"
]
self.structurals = rougailconfig["step.structural"]
try:
self.user_datas = rougailconfig["step.user_data"]
except:
self.user_datas = []
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'the variable "{variable.path}" is in fact a family in attribute "{self.attribute_name}" for "{self.path}"'
msg = f'a variable "{variable.path}" is needs in attribute "{self.attribute_name}" for "{self.path}" but it\'s a family'
raise DictConsistencyError(msg, 47, self.xmlfiles)
else:
msg = f'unknown object "{variable}" in attribute "{self.attribute_name}" for "{self.path}"'

View file

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