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:
David Glick 2011-04-08 20:23:07 +00:00
commit 8d3a37ead9
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>100</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="100"
title="Update plone.app.discussion setting registry"
description=""
profile="plone.app.discussion:default"
handler=".upgrades.update_registry"
/>
</configure>