Skip to content

Commit ada901f

Browse files
committed
enable experimental.noacquisition
1 parent 66c1167 commit ada901f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redturtle/volto/patches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def absolutize_path_patched(path, is_source=True):
7676
# Check whether obj exists at source path.
7777
# A redirect would be useless then.
7878

79-
### THIS IS THE PATCH ###
79+
# THIS IS THE PATCH
8080
# unrestrictedTraverse returns the object with acquisition, so if
8181
# you have a content with path /Plone/aaa and try to call unrestrictedTraverse
8282
# 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):
9090
# if paths are different, it's an acquisition false positive,
9191
# so go on and let create the alias
9292
err = _("Cannot use a working path as alternative url.")
93-
### END OF THE PATCH ###
93+
# END OF PATCH
9494
else:
9595
# Check whether obj exists at target path
9696
result = catalog.searchResults(path={"query": path})

0 commit comments

Comments
 (0)