add upgrade step for moderator_email setting

svn path=/plone.app.discussion/branches/1.x/; revision=48555
This commit is contained in:
David Glick 2011-04-08 20:20:34 +00:00
parent a1a9042b73
commit d323d37285
4 changed files with 24 additions and 1 deletions

View File

@ -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" />

View File

@ -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>

View 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)

View 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>