From 64cbb25d6ea5744e9678aa2be8b7c06a62f9b86e Mon Sep 17 00:00:00 2001 From: Roman <72063601+folix-01@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:18:12 +0200 Subject: [PATCH] Turn off rss author v4 (#57) * Registry changes * Final changes * Adapt changes to 4.x version * Update changelog --- CHANGES.rst | 3 ++- .../policy/profiles/default/metadata.xml | 2 +- .../policy/profiles/default/registry.xml | 19 +++++++++---- .../policy/tests/test_registry_entries.py | 27 +++++++++++++++++++ src/design/plone/policy/upgrades.zcml | 10 +++++++ 5 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 src/design/plone/policy/tests/test_registry_entries.py diff --git a/CHANGES.rst b/CHANGES.rst index 2558133..85c1fc8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,10 +4,11 @@ Changelog 4.0.5 (unreleased) ------------------ +- Set plone.base.interfaces.syndication.ISiteSyndicationSettings.show_author_info to False by default. + [folix-01] - Add X-ForceAuth header and iw.rejectanonymous backport from 5.0.0 #48 [mamico] - - Remove twitter feeds. [folix-01] diff --git a/src/design/plone/policy/profiles/default/metadata.xml b/src/design/plone/policy/profiles/default/metadata.xml index fee42ff..41fdbbd 100644 --- a/src/design/plone/policy/profiles/default/metadata.xml +++ b/src/design/plone/policy/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 2020 + 2021 profile-plone.restapi:default profile-design.plone.contenttypes:default diff --git a/src/design/plone/policy/profiles/default/registry.xml b/src/design/plone/policy/profiles/default/registry.xml index 361ef89..19719db 100644 --- a/src/design/plone/policy/profiles/default/registry.xml +++ b/src/design/plone/policy/profiles/default/registry.xml @@ -32,9 +32,18 @@ - - - data-element - - + + + data-element + + + + + False + + diff --git a/src/design/plone/policy/tests/test_registry_entries.py b/src/design/plone/policy/tests/test_registry_entries.py new file mode 100644 index 0000000..fa8ab27 --- /dev/null +++ b/src/design/plone/policy/tests/test_registry_entries.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +from plone.app.testing import setRoles +from plone.app.testing import TEST_USER_ID +from plone import api + +from design.plone.policy.testing import DESIGN_PLONE_POLICY_INTEGRATION_TESTING + +import unittest + + +class TestInitialStructureCreation(unittest.TestCase): + layer = DESIGN_PLONE_POLICY_INTEGRATION_TESTING + + def setUp(self): + self.app = self.layer["app"] + self.portal = self.layer["portal"] + + setRoles(self.portal, TEST_USER_ID, ["Manager"]) + + def test_plone_base_interfaces_syndication_ISiteSyndicationSettings_show_author_info( + self, + ): + self.assertFalse( + api.portal.get_registry_record( + "Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_author_info" + ) + ) diff --git a/src/design/plone/policy/upgrades.zcml b/src/design/plone/policy/upgrades.zcml index 1461b38..791e3cd 100644 --- a/src/design/plone/policy/upgrades.zcml +++ b/src/design/plone/policy/upgrades.zcml @@ -151,4 +151,14 @@ handler=".upgrades.update_rolemap" /> + + +