From 234018b5430906c31869c5eb34fd92c67b2409fc Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Wed, 19 Jun 2024 12:12:20 +0200 Subject: [PATCH] Remove ancient comments about portal_properties in get_navigation_root. The code was already checking the configuration registry, but the comments had not been updated. [ci skip] --- src/plone/base/navigationroot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plone/base/navigationroot.py b/src/plone/base/navigationroot.py index 47d3cb5..bf7564a 100644 --- a/src/plone/base/navigationroot.py +++ b/src/plone/base/navigationroot.py @@ -15,7 +15,7 @@ def get_navigation_root(context, relativeRoot=None): portal path and this relativeRoot. If no relativeRoot argument is provided, and there is a root value set in - portal_properties, navigation root path is computed from + the configuration registry, navigation root path is computed from portal path and this root value. IMPORTANT !!! @@ -32,7 +32,7 @@ def get_navigation_root(context, relativeRoot=None): return "/".join(getSite().getPhysicalPath()) if relativeRoot is None: - # fetch from portal_properties + # fetch from configuration registry registry = getUtility(IRegistry) relativeRoot = registry.get("plone.root", None)