add upgrade-step to re-enable comments.js
This commit is contained in:
parent
4966d8388e
commit
c229e51690
@ -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>
|
||||||
|
@ -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')
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user