merge r48555 from 1.x branch. bumping profile version to 100 so there's space for future upgrades in the 1.x line
svn path=/plone.app.discussion/trunk/; revision=48556
This commit is contained in:
commit
8d3a37ead9
@ -27,6 +27,7 @@
|
|||||||
<include file="permissions.zcml" />
|
<include file="permissions.zcml" />
|
||||||
<include file="notifications.zcml" />
|
<include file="notifications.zcml" />
|
||||||
<include file="subscribers.zcml" />
|
<include file="subscribers.zcml" />
|
||||||
|
<include file="upgrades.zcml" />
|
||||||
<include package=".browser" />
|
<include package=".browser" />
|
||||||
|
|
||||||
<i18n:registerTranslations directory="locales" />
|
<i18n:registerTranslations directory="locales" />
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<metadata>
|
<metadata>
|
||||||
<version>1</version>
|
<version>100</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>profile-plone.app.registry:default</dependency>
|
<dependency>profile-plone.app.registry:default</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
8
plone/app/discussion/upgrades.py
Normal file
8
plone/app/discussion/upgrades.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from zope.component import getUtility
|
||||||
|
from plone.registry.interfaces import IRegistry
|
||||||
|
from plone.app.discussion.interfaces import IDiscussionSettings
|
||||||
|
|
||||||
|
|
||||||
|
def update_registry(context):
|
||||||
|
registry = getUtility(IRegistry)
|
||||||
|
registry.registerInterface(IDiscussionSettings)
|
14
plone/app/discussion/upgrades.zcml
Normal file
14
plone/app/discussion/upgrades.zcml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<configure
|
||||||
|
xmlns="http://namespaces.zope.org/zope"
|
||||||
|
xmlns:genericsetup="http://namespaces.zope.org/genericsetup">
|
||||||
|
|
||||||
|
<genericsetup:upgradeStep
|
||||||
|
source="*"
|
||||||
|
destination="100"
|
||||||
|
title="Update plone.app.discussion setting registry"
|
||||||
|
description=""
|
||||||
|
profile="plone.app.discussion:default"
|
||||||
|
handler=".upgrades.update_registry"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</configure>
|
Loading…
Reference in New Issue
Block a user