From ada901f152f0e42c936d274148a5fa2d738223d5 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Thu, 5 Dec 2024 09:40:31 +0100 Subject: [PATCH] enable experimental.noacquisition --- src/redturtle/volto/patches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redturtle/volto/patches.py b/src/redturtle/volto/patches.py index bdd3617..b45d535 100644 --- a/src/redturtle/volto/patches.py +++ b/src/redturtle/volto/patches.py @@ -76,7 +76,7 @@ def absolutize_path_patched(path, is_source=True): # Check whether obj exists at source path. # A redirect would be useless then. - ### THIS IS THE PATCH ### + # THIS IS THE PATCH # unrestrictedTraverse returns the object with acquisition, so if # you have a content with path /Plone/aaa and try to call unrestrictedTraverse # with /Plone/aaa/aaa/aaa/aaa it will always return /Plone/aaa object @@ -90,7 +90,7 @@ def absolutize_path_patched(path, is_source=True): # if paths are different, it's an acquisition false positive, # so go on and let create the alias err = _("Cannot use a working path as alternative url.") - ### END OF THE PATCH ### + # END OF PATCH else: # Check whether obj exists at target path result = catalog.searchResults(path={"query": path})