Skip to content

Commit

Permalink
Add Upgrade step for Plone 5.2.2. Move accidentially merged upgrade s…
Browse files Browse the repository at this point in the history
…tep for #209 from 5.2.1 to 5.2.2
  • Loading branch information
thet committed Feb 17, 2020
1 parent 3e1efd1 commit 2cd9cf6
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions news/209.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Add upgrade step for Plone 5.2.2.
[thet]

Image caption support
Allow ``figcaption`` in rich text editor as a valid tag.
Add registry setting for plone.image_caption outputfilter transform.
Expand Down
13 changes: 13 additions & 0 deletions plone/app/upgrade/v52/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,17 @@

</gs:upgradeSteps>

<gs:upgradeSteps
source="5208"
destination="5209"
profile="Products.CMFPlone:plone">

<gs:upgradeStep
title="Miscellaneous"
description=""
handler=".final.to522"
/>

</gs:upgradeSteps>

</configure>
6 changes: 6 additions & 0 deletions plone/app/upgrade/v52/final.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def change_interface_on_lang_registry_records(context):
)
record.field.interfaceName = NEW_PREFIX


def to521(context):
"""5.2.0 -> 5.2.1"""
loadMigrationProfile(context, 'profile-plone.app.upgrade.v52:to521')
Expand All @@ -126,3 +127,8 @@ def to521(context):
qi = get_installer(context)
if not qi.is_product_installed('plone.staticresources'):
qi.install_product('plone.staticresources')


def to522(context):
"""5.2.1 -> 5.2.2"""
loadMigrationProfile(context, 'profile-plone.app.upgrade.v52:to522')
8 changes: 8 additions & 0 deletions plone/app/upgrade/v52/profiles.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,13 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="to522"
title="Upgrade profile for Plone 5.2.1 to Plone 5.2.2"
description=""
directory="profiles/to_522"
for="Products.CMFPlone.interfaces.IMigratingPloneSiteRoot"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

</configure>

0 comments on commit 2cd9cf6

Please sign in to comment.