Compare commits
2 commits
5652757787
...
a5dc507c65
| Author | SHA1 | Date | |
|---|---|---|---|
| a5dc507c65 | |||
| 550996f22a |
4 changed files with 15 additions and 6 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 0.2.0a31 (2025-10-02)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- limit warning when asked
|
||||||
|
|
||||||
## 0.2.0a30 (2025-10-02)
|
## 0.2.0a30 (2025-10-02)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.output_doc"
|
name = "rougail.output_doc"
|
||||||
version = "0.2.0a30"
|
version = "0.2.0a31"
|
||||||
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 doc"
|
description = "Rougail output doc"
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.2.0a30"
|
__version__ = "0.2.0a31"
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ from tiramisu import Calculation, groups
|
||||||
from tiramisu.error import ConfigError, display_list, PropertiesOptionError
|
from tiramisu.error import ConfigError, display_list, PropertiesOptionError
|
||||||
from rougail.tiramisu import display_xmlfiles, normalize_family
|
from rougail.tiramisu import display_xmlfiles, normalize_family
|
||||||
from rougail.utils import undefined, PROPERTY_ATTRIBUTE
|
from rougail.utils import undefined, PROPERTY_ATTRIBUTE
|
||||||
from rougail.error import VariableCalculationDependencyError
|
from rougail.error import VariableCalculationDependencyError, RougailWarning
|
||||||
|
|
||||||
from .config import OutPuts
|
from .config import OutPuts
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
@ -415,7 +415,9 @@ class RougailOutputDoc(Examples):
|
||||||
child.path(uncalculated=True),
|
child.path(uncalculated=True),
|
||||||
display_xmlfiles(child.information.get("ymlfiles")),
|
display_xmlfiles(child.information.get("ymlfiles")),
|
||||||
)
|
)
|
||||||
warn(warning)
|
warn(warning,
|
||||||
|
RougailWarning,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
informations["description"] = self._convert_description(description, child)
|
informations["description"] = self._convert_description(description, child)
|
||||||
help_ = child.information.get("help", None)
|
help_ = child.information.get("help", None)
|
||||||
|
|
@ -691,8 +693,9 @@ class RougailOutputDoc(Examples):
|
||||||
child.path(),
|
child.path(),
|
||||||
display_xmlfiles(child.information.get("ymlfiles")),
|
display_xmlfiles(child.information.get("ymlfiles")),
|
||||||
)
|
)
|
||||||
# FIXME should be able to desactivate warn with cli
|
warn(warning,
|
||||||
warn(warning)
|
RougailWarning,
|
||||||
|
)
|
||||||
return values
|
return values
|
||||||
|
|
||||||
def _calculation_variable_to_string(self, child, calculation, prop):
|
def _calculation_variable_to_string(self, child, calculation, prop):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue