Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off rss author v4 #57

Merged
merged 4 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading