From 2cd9cf6d26da675f7a4f3dd93b195d8d17b837a8 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Mon, 17 Feb 2020 15:29:09 +0100 Subject: [PATCH] Add Upgrade step for Plone 5.2.2. Move accidentially merged upgrade step for #209 from 5.2.1 to 5.2.2 --- news/209.feature | 3 +++ plone/app/upgrade/v52/configure.zcml | 13 +++++++++++++ plone/app/upgrade/v52/final.py | 6 ++++++ plone/app/upgrade/v52/profiles.zcml | 8 ++++++++ .../{registry/types_schema.xml => registry.xml} | 0 .../registry/image_captioning.xml | 0 6 files changed, 30 insertions(+) rename plone/app/upgrade/v52/profiles/to_521/{registry/types_schema.xml => registry.xml} (100%) rename plone/app/upgrade/v52/profiles/{to_521 => to_522}/registry/image_captioning.xml (100%) diff --git a/news/209.feature b/news/209.feature index 7a68051e..9886bed6 100644 --- a/news/209.feature +++ b/news/209.feature @@ -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. diff --git a/plone/app/upgrade/v52/configure.zcml b/plone/app/upgrade/v52/configure.zcml index ce754111..7d19c988 100644 --- a/plone/app/upgrade/v52/configure.zcml +++ b/plone/app/upgrade/v52/configure.zcml @@ -138,4 +138,17 @@ + + + + + + diff --git a/plone/app/upgrade/v52/final.py b/plone/app/upgrade/v52/final.py index c60414ce..29701a83 100644 --- a/plone/app/upgrade/v52/final.py +++ b/plone/app/upgrade/v52/final.py @@ -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') @@ -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') diff --git a/plone/app/upgrade/v52/profiles.zcml b/plone/app/upgrade/v52/profiles.zcml index 16c30c03..95ee05e2 100644 --- a/plone/app/upgrade/v52/profiles.zcml +++ b/plone/app/upgrade/v52/profiles.zcml @@ -48,5 +48,13 @@ provides="Products.GenericSetup.interfaces.EXTENSION" /> + diff --git a/plone/app/upgrade/v52/profiles/to_521/registry/types_schema.xml b/plone/app/upgrade/v52/profiles/to_521/registry.xml similarity index 100% rename from plone/app/upgrade/v52/profiles/to_521/registry/types_schema.xml rename to plone/app/upgrade/v52/profiles/to_521/registry.xml diff --git a/plone/app/upgrade/v52/profiles/to_521/registry/image_captioning.xml b/plone/app/upgrade/v52/profiles/to_522/registry/image_captioning.xml similarity index 100% rename from plone/app/upgrade/v52/profiles/to_521/registry/image_captioning.xml rename to plone/app/upgrade/v52/profiles/to_522/registry/image_captioning.xml