WIP: Expand the developer documentation #27

Draft
gremond wants to merge 249 commits from develop into developer_docs
Showing only changes of commit 29697ec122 - Show all commits

View file

@ -278,7 +278,7 @@ class ParserVariable:
return "family"
if obj_type in self.variable_types or obj_type in self.custom_variable_types:
return "variable"
msg = _("unknown type {0} for {1}").format(obj_type, path)
msg = _('unknown type "{0}" for "{1}"').format(obj_type, path)
raise DictConsistencyError(msg, 43, sources)
# in a leadership there is only variable
if family_is_leadership:
@ -452,7 +452,7 @@ class ParserVariable:
# convert to Calculation objects
self.parse_parameters(
path,
obj,
family_obj,
sources,
family_is_dynamic,
typ="family",
@ -460,7 +460,7 @@ class ParserVariable:
if self.load_unexist_redefine or exists in [None, True]:
self.paths.add(
path,
self.paths[path].model_copy(update=obj),
self.paths[path].model_copy(update=family_obj),
family_is_dynamic,
parent_dynamic,
force=True,