Skip to content

Commit

Permalink
Merge pull request #328 from plone/cleanup-patterns
Browse files Browse the repository at this point in the history
Add upgrade step that removes AtD settings
  • Loading branch information
mauritsvanrees authored Jun 19, 2024
2 parents 26e4c79 + d977aeb commit 8bf1dfb
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions plone/app/upgrade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def getNonInstallableProducts(self):
return [
"plone.app.upgrade.v52",
"plone.app.upgrade.v60",
"plone.app.upgrade.v61",
]

def getNonInstallableProfiles(self):
Expand Down
7 changes: 7 additions & 0 deletions plone/app/upgrade/v61/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
i18n_domain="plone"
>

<include file="profiles.zcml" />

<gs:upgradeSteps
profile="Products.CMFPlone:plone"
source="6099"
Expand Down Expand Up @@ -56,6 +58,11 @@
title="Miscellaneous"
handler="..utils.null_upgrade_step"
/>

<gs:upgradeDepends
title="Run to6103 upgrade profile."
import_profile="plone.app.upgrade.v61:to6103"
/>
</gs:upgradeSteps>

</configure>
14 changes: 14 additions & 0 deletions plone/app/upgrade/v61/profiles.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="plone">

<genericsetup:registerProfile
name="to6103"
title="Upgrade profile to Plone 6.1.0a4 (6103)"
directory="profiles/to6103"
for="plone.base.interfaces.IMigratingPloneSiteRoot"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

</configure>
7 changes: 7 additions & 0 deletions plone/app/upgrade/v61/profiles/to6103/registry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<registry>
<record name="plone.libraries_spellchecker_choice" remove="true" />
<record name="plone.libraries_atd_ignore_strings" remove="true" />
<record name="plone.libraries_atd_show_types" remove="true" />
<record name="plone.libraries_atd_service_url" remove="true" />
</registry>

0 comments on commit 8bf1dfb

Please sign in to comment.