add upgrade-step to re-enable comments.js

This commit is contained in:
Philip Bauer 2019-06-27 19:59:20 +02:00
parent 4966d8388e
commit c229e51690
3 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<metadata> <metadata>
<version>1000</version> <version>1001</version>
<dependencies> <dependencies>
<dependency>profile-plone.resource:default</dependency> <dependency>profile-plone.resource:default</dependency>
<dependency>profile-plone.app.registry:default</dependency> <dependency>profile-plone.app.registry:default</dependency>

View File

@ -61,3 +61,7 @@ def upgrade_comment_workflows(context):
comment.reindexObjectSecurity() comment.reindexObjectSecurity()
except (AttributeError, KeyError): except (AttributeError, KeyError):
logger.info('Could not reindex comment {0}'.format(brain.getURL())) logger.info('Could not reindex comment {0}'.format(brain.getURL()))
def add_js_to_plone_legacy(context):
context.runImportStepFromProfile(default_profile, 'plone.app.registry')

View File

@ -51,4 +51,15 @@
/> />
</genericsetup:upgradeSteps> </genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1000"
destination="1001"
profile="plone.app.discussion:default">
<genericsetup:upgradeStep
title="Move comment.js into plone-legacy bundle"
description=""
handler=".upgrades.add_js_to_plone_legacy"
/>
</genericsetup:upgradeSteps>
</configure> </configure>