add upgrade step for moderator_email setting
svn path=/plone.app.discussion/branches/1.x/; revision=48555
This commit is contained in:
parent
a1a9042b73
commit
d323d37285
@ -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>2</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="2"
|
||||||
|
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