WIP: Expand the developer documentation #27

Draft
gremond wants to merge 189 commits from develop into developer_docs
5 changed files with 27 additions and 1 deletions
Showing only changes of commit 7ee65b6cab - Show all commits

View file

@ -39,6 +39,7 @@ from rougail.error import display_xmlfiles
from tiramisu import DynOptionDescription, calc_value, function_waiting_for_error
from tiramisu.error import ValueWarning, ConfigError, PropertiesOptionError, CancelParam
from .utils import normalize_family
from .i18n import _
global func
@ -163,7 +164,7 @@ def jinja_to_function(
except Exception as err:
kw_str = ", ".join(kw_to_string(kw))
raise ConfigError(
f'cannot calculating "{__internal_attribute}" attribute for variable "{__internal_variable}" in {display_xmlfiles(__internal_files)} with parameters "{kw_str}": {err}'
_('cannot calculating "{0}" attribute for variable "{1}" in {2} with parameters "{3}": {4}').format(__internal_attribute, __internal_variable, display_xmlfiles(__internal_files), kw_str, err)
) from err
convert = CONVERT_OPTION[__internal_type].get("func", str)
if __internal_multi:

View file

@ -0,0 +1,10 @@
{
"rougail.var1": {
"owner": "default",
"value": "#a1a1a1"
},
"rougail.var2": {
"owner": "default",
"value": "#a1a1a1"
}
}

View file

@ -0,0 +1,4 @@
{
"rougail.var1": "#a1a1a1",
"rougail.var2": "#a1a1a1"
}

View file

@ -0,0 +1,10 @@
{
"rougail.var1": {
"owner": "default",
"value": "#a1a1a1"
},
"rougail.var2": {
"owner": "default",
"value": "#a1a1a1"
}
}

View file

@ -0,0 +1 @@
[]