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

Add upgrade step that removes AtD settings #328

Merged
merged 2 commits into from
Jun 19, 2024
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
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>