Skip to content

Commit

Permalink
Copy method from v30
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Oct 22, 2016
1 parent 825f170 commit aac74f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions plone/app/upgrade/v40/alphas.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,11 @@ def alpha4_alpha5(context):
"""
loadMigrationProfile(
context, 'profile-plone.app.upgrade.v40:4alpha4-4alpha5')


def installNewModifiers(context):
from Products.CMFEditions.StandardModifiers import install
modifiers = getToolByName(context, 'portal_modifier', None)
if modifiers is not None:
install(modifiers)
logger.info('Added new CMFEditions modifiers.')
2 changes: 1 addition & 1 deletion plone/app/upgrade/v40/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

<genericsetup:upgradeStep
title="Add new CMFEditions default modifiers."
handler="plone.app.upgrade.v30.final_three0x.installNewModifiers"
handler=".alphas.installNewModifiers"
/>

<genericsetup:upgradeStep
Expand Down

0 comments on commit aac74f6

Please sign in to comment.