Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli authored Jan 22, 2025
1 parent 2da0c39 commit 6b8ad4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion news/1861.feature
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Support filtering the list of registry records. @Faakhir30
In the `@registry` endpoint, added support for filtering the list of registry records. @Faakhir30
7 changes: 0 additions & 7 deletions src/plone/restapi/services/registry/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from zope.component import getUtility
from zope.interface import implementer
from zope.publisher.interfaces import IPublishTraverse
import plone.protect.interfaces
from zope.interface import alsoProvides


@implementer(IPublishTraverse)
Expand Down Expand Up @@ -39,11 +37,6 @@ def reply(self):
return json_compatible(value)
else: # batched listing
if q := self.request.form.get("q"):
# Disable CSRF protection
if "IDisableCSRFProtection" in dir(plone.protect.interfaces):
alsoProvides(
self.request, plone.protect.interfaces.IDisableCSRFProtection
)

tmp_registry = Registry()
for key in registry.records.keys():
Expand Down

0 comments on commit 6b8ad4a

Please sign in to comment.