From 4c79191014e3b63fca32ebfae181d3d767f0bc35 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Tue, 17 Oct 2023 17:04:11 +0200 Subject: [PATCH] adapt for Plone 4.3 --- src/plone/restapi/services/site/get.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/plone/restapi/services/site/get.py b/src/plone/restapi/services/site/get.py index f2fe3cdc8c..eb3b2e6ffe 100644 --- a/src/plone/restapi/services/site/get.py +++ b/src/plone/restapi/services/site/get.py @@ -47,18 +47,14 @@ def __call__(self, expand=False): image_settings = registry.forInterface( IImagingSchema, prefix="plone", check=False ) - result["site"].update( - { + result["site"].update({ "plone.allowed_sizes": image_settings.allowed_sizes, - } - ) + }) - result["site"].update( - { + result["site"].update({ "plone.site_title": portal_state.portal_title(), "plone.allowed_sizes": image_settings.allowed_sizes, - } - ) + }) return result