Skip to content

Commit

Permalink
Turn off rss author v4 (#57)
Browse files Browse the repository at this point in the history
* Registry changes

* Final changes

* Adapt changes to 4.x version

* Update changelog
  • Loading branch information
folix-01 authored Jul 28, 2023
1 parent e41df6c commit 64cbb25
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion src/design/plone/policy/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<version>2020</version>
<version>2021</version>
<dependencies>
<dependency>profile-plone.restapi:default</dependency>
<dependency>profile-design.plone.contenttypes:default</dependency>
Expand Down
19 changes: 14 additions & 5 deletions src/design/plone/policy/profiles/default/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,18 @@
</value>
</record>

<records interface="Products.CMFPlone.interfaces.controlpanel.IFilterSchema" prefix="plone">
<value key="custom_attributes" purge="false">
<element>data-element</element>
</value>
</records>
<records interface="Products.CMFPlone.interfaces.controlpanel.IFilterSchema" prefix="plone">
<value key="custom_attributes" purge="false">
<element>data-element</element>
</value>
</records>

<record field="show_author_info"
interface="Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings"
name="Products.CMFPlone.interfaces.syndication.ISiteSyndicationSettings.show_author_info"
purge="True"
>
<value>False</value>
</record>

</registry>
27 changes: 27 additions & 0 deletions src/design/plone/policy/tests/test_registry_entries.py
Original file line number Diff line number Diff line change
@@ -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"
)
)
10 changes: 10 additions & 0 deletions src/design/plone/policy/upgrades.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,14 @@
handler=".upgrades.update_rolemap"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
profile="design.plone.policy:default"
source="2020"
destination="2021"
>
<genericsetup:upgradeStep
title="Set plone.base.plone.base.interfaces.syndication.ISiteSyndicationSettings.show_author_info to False"
handler=".upgrades.update_registry"
/>
</genericsetup:upgradeSteps>
</configure>

0 comments on commit 64cbb25

Please sign in to comment.