From d323d3728533e851868c34f353a213ad8080897f Mon Sep 17 00:00:00 2001 From: David Glick Date: Fri, 8 Apr 2011 20:20:34 +0000 Subject: [PATCH] add upgrade step for moderator_email setting svn path=/plone.app.discussion/branches/1.x/; revision=48555 --- plone/app/discussion/configure.zcml | 1 + plone/app/discussion/profiles/default/metadata.xml | 2 +- plone/app/discussion/upgrades.py | 8 ++++++++ plone/app/discussion/upgrades.zcml | 14 ++++++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 plone/app/discussion/upgrades.py create mode 100644 plone/app/discussion/upgrades.zcml diff --git a/plone/app/discussion/configure.zcml b/plone/app/discussion/configure.zcml index e628131..1c5a8b9 100644 --- a/plone/app/discussion/configure.zcml +++ b/plone/app/discussion/configure.zcml @@ -27,6 +27,7 @@ + diff --git a/plone/app/discussion/profiles/default/metadata.xml b/plone/app/discussion/profiles/default/metadata.xml index 0529698..c9bbe47 100644 --- a/plone/app/discussion/profiles/default/metadata.xml +++ b/plone/app/discussion/profiles/default/metadata.xml @@ -1,5 +1,5 @@ - 1 + 2 profile-plone.app.registry:default diff --git a/plone/app/discussion/upgrades.py b/plone/app/discussion/upgrades.py new file mode 100644 index 0000000..bf9df71 --- /dev/null +++ b/plone/app/discussion/upgrades.py @@ -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) diff --git a/plone/app/discussion/upgrades.zcml b/plone/app/discussion/upgrades.zcml new file mode 100644 index 0000000..852f2e6 --- /dev/null +++ b/plone/app/discussion/upgrades.zcml @@ -0,0 +1,14 @@ + + + + +