From d4bc598e228041eb06b0019f2665ce10766ac298 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Sat, 5 Oct 2024 09:07:57 +0200 Subject: [PATCH 1/2] allow overriding package.dottedname through a configuration file --- bobtemplates/plone/base.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bobtemplates/plone/base.py b/bobtemplates/plone/base.py index d3afd119..df3e4736 100644 --- a/bobtemplates/plone/base.py +++ b/bobtemplates/plone/base.py @@ -432,9 +432,12 @@ def base_prepare_renderer(configurator): ) if not configurator.variables["package.root_folder"]: raise MrBobError("No setup.py found in path!\n") - configurator.variables["package.dottedname"] = configurator.variables[ - "package.root_folder" - ].split(os.path.sep)[-1] + + if "package.dottedname" not in configurator.variables: + configurator.variables["package.dottedname"] = configurator.variables[ + "package.root_folder" + ].split(os.path.sep)[-1] + configurator.variables["package.namespace"] = configurator.variables[ "package.dottedname" ].split(".")[0] From c5f7af5989bef053827d0fbd9ff42507e8f74769 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Sat, 5 Oct 2024 16:44:51 +0200 Subject: [PATCH 2/2] changelog --- CHANGES.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 95122dc3..2ff6ab10 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.3.4 (unreleased) ------------------ -- Nothing changed yet. +- Allow overriding package.dottedname in the configuration file + [erral] 6.3.3 (2024-07-31)