From faba0d6811b903fedf1b30195aab3a3acd1723b4 Mon Sep 17 00:00:00 2001 From: dieter Date: Sat, 17 Feb 2024 17:36:39 +0100 Subject: [PATCH] fixes from review --- CHANGES.rst | 2 +- src/webdav/Collection.py | 1 - src/webdav/Resource.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 4f66ce64ad..2524f68996 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,7 +18,7 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst - Fix redirections to URLs with host given as IP-literal with brackets. Fixes `#1191 `_. -- Introduce the decorator ``ZPublisher.zpublish` to explicitly +- Introduce the decorator ``ZPublisher.zpublish`` to explicitly control publication by ``ZPublisher``. For details see `#1197 `_. diff --git a/src/webdav/Collection.py b/src/webdav/Collection.py index f0461d046a..c54dfbf444 100644 --- a/src/webdav/Collection.py +++ b/src/webdav/Collection.py @@ -142,7 +142,6 @@ def DELETE(self, REQUEST, RESPONSE): return RESPONSE - @zpublish @security.protected(webdav_access) def listDAVObjects(self): objectValues = getattr(self, 'objectValues', None) diff --git a/src/webdav/Resource.py b/src/webdav/Resource.py index 35eec9c1bc..94e4c53cae 100644 --- a/src/webdav/Resource.py +++ b/src/webdav/Resource.py @@ -704,7 +704,6 @@ def manage_DAVget(self): # If it doesn't exist, give up. return '' - @zpublish @security.protected(webdav_access) def listDAVObjects(self): return []