From d2b519c987372ab4eed5ee8641809d4f09a35468 Mon Sep 17 00:00:00 2001 From: Roman <72063601+folix-01@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:00:05 +0200 Subject: [PATCH] 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(