From 607c341cc046122f9a4ef51144a3e85191c8dc0e Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 30 Oct 2023 14:24:16 +0100 Subject: [PATCH] Squashed commit of the following: commit d2b519c987372ab4eed5ee8641809d4f09a35468 Author: Roman <72063601+folix-01@users.noreply.github.com> Date: Thu Oct 26 15:00:05 2023 +0200 Align to redturtle.prenotazioni newest version --- .../restapi/serializers/ovverrides/prenotazioniFolder.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/design/plone/ioprenoto/restapi/serializers/ovverrides/prenotazioniFolder.py b/src/design/plone/ioprenoto/restapi/serializers/ovverrides/prenotazioniFolder.py index cefd3e6..8b2e25f 100644 --- a/src/design/plone/ioprenoto/restapi/serializers/ovverrides/prenotazioniFolder.py +++ b/src/design/plone/ioprenoto/restapi/serializers/ovverrides/prenotazioniFolder.py @@ -2,9 +2,7 @@ from plone.restapi.interfaces import ISerializeToJson, ISerializeToJsonSummary from plone.restapi.serializer.summary import DefaultJSONSummarySerializer from redturtle.prenotazioni.content.prenotazioni_folder import IPrenotazioniFolder -from redturtle.prenotazioni.restapi.serializers.adapters.prenotazioni_folder import ( - PrenotazioniFolderSerializer, -) +from plone.restapi.serializer.dxcontent import SerializeFolderToJson from zope.component import adapter from zope.interface import implementer @@ -39,7 +37,7 @@ def __call__(self, *args, **kwargs): @implementer(ISerializeToJson) @adapter(IPrenotazioniFolder, IDesignPloneIoprenotoLayer) -class SerializePrenotazioniFolderToJson(PrenotazioniFolderSerializer): +class SerializePrenotazioniFolderToJson(SerializeFolderToJson): def __call__(self, *args, **kwargs): resp = super().__call__(*args, **kwargs) if not api.user.has_permission(