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 profiles for v60, including a upgrade step for #3086 #230

Merged
merged 1 commit into from
Apr 23, 2020
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
2 changes: 2 additions & 0 deletions news/3086.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add upgrade profiles for v60, including a upgrade step for #3086 (custom.css view)
[MrTango]
1 change: 1 addition & 0 deletions plone/app/upgrade/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<include package=".v50" zcml:condition="have plone-5" />
<include package=".v51" zcml:condition="have plone-51" />
<include package=".v52" zcml:condition="have plone-52" />
<include package=".v60" zcml:condition="have plone-60" />

<utility
zcml:condition="have plone-51"
Expand Down
1 change: 1 addition & 0 deletions plone/app/upgrade/v60/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
21 changes: 21 additions & 0 deletions plone/app/upgrade/v60/alphas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
from BTrees.OOBTree import OOBTree
from plone.app.upgrade.utils import cleanUpSkinsTool
from plone.app.upgrade.utils import loadMigrationProfile
from plone.dexterity.interfaces import IDexterityFTI
from plone.folder.nogopip import manage_addGopipIndex
from plone.registry.interfaces import IRegistry
from Products.CMFCore.utils import getToolByName
from Products.PlonePAS.tools.memberdata import MemberData
from zope.component import getUtility

import logging


logger = logging.getLogger('plone.app.upgrade')


def to60alpha1(context):
loadMigrationProfile(context, 'profile-plone.app.upgrade.v60:to60alpha1')
# portal = getToolByName(context, 'portal_url').getPortalObject()

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

<include file="profiles.zcml" />

<gs:upgradeSteps
source="5299"
destination="6000"
profile="Products.CMFPlone:plone">

<gs:upgradeStep
title="Run to60alpha1 upgrade profile."
description=""
handler=".alphas.to60alpha1"
/>

</gs:upgradeSteps>


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

<genericsetup:registerProfile
name="to60alpha1"
title="Upgrade profile for Plone 5.2.x to Plone 6.0alpha1"
description=""
directory="profiles/to_alpha1"
for="Products.CMFPlone.interfaces.IMigratingPloneSiteRoot"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

</configure>
4 changes: 4 additions & 0 deletions plone/app/upgrade/v60/profiles/to_alpha1/registry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<registry>
<records interface="plone.app.theming.interfaces.IThemeSettings" />
</registry>