diff --git a/src/design/plone/contenttypes/browser/bando.py b/src/design/plone/contenttypes/browser/bando.py index 0fd4c9cd..7d8cec2e 100644 --- a/src/design/plone/contenttypes/browser/bando.py +++ b/src/design/plone/contenttypes/browser/bando.py @@ -75,9 +75,9 @@ def retrieveContentsOfFolderDeepening(self, path_dfolder): elif brain.Type == "File": obj_file = brain.getObject().file if obj_file: - dictfields[ - "url" - ] = f"{brain.getURL()}/@@download/file/{obj_file.filename}" # noqa E501 + dictfields["url"] = ( + f"{brain.getURL()}/@@download/file/{obj_file.filename}" # noqa E501 + ) obj_size = obj_file.size dictfields["filesize"] = self.getSizeString(obj_size) elif brain.Type == "Modulo": diff --git a/src/design/plone/contenttypes/restapi/services/types/get.py b/src/design/plone/contenttypes/restapi/services/types/get.py index 6da56d66..09b20cd5 100644 --- a/src/design/plone/contenttypes/restapi/services/types/get.py +++ b/src/design/plone/contenttypes/restapi/services/types/get.py @@ -187,25 +187,25 @@ def customize_venue_schema(self, result): } if "city" in result["properties"]: if not result["properties"]["city"].get("default", ""): - result["properties"]["city"][ - "default" - ] = api.portal.get_registry_record( - "city", interface=IGeolocationDefaults + result["properties"]["city"]["default"] = ( + api.portal.get_registry_record( + "city", interface=IGeolocationDefaults + ) ) if "zip_code" in result["properties"]: if not result["properties"]["zip_code"].get("default", ""): - result["properties"]["zip_code"][ - "default" - ] = api.portal.get_registry_record( - "zip_code", interface=IGeolocationDefaults + result["properties"]["zip_code"]["default"] = ( + api.portal.get_registry_record( + "zip_code", interface=IGeolocationDefaults + ) ) if "street" in result["properties"]: if not result["properties"]["street"].get("default", ""): - result["properties"]["street"][ - "default" - ] = api.portal.get_registry_record( - "street", interface=IGeolocationDefaults + result["properties"]["street"]["default"] = ( + api.portal.get_registry_record( + "street", interface=IGeolocationDefaults + ) ) if "geolocation" in result["properties"]: