From 57c534b5d3dd54608d294d349ff5664e5db5d3f2 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 3 Jun 2009 12:49:34 +0000 Subject: [PATCH] add globally_enabled option to the discussion plone control panel. add plone.app.discussion to the package dependencies. svn path=/plone.app.discussion/trunk/; revision=27273 --- plone/app/discussion/interfaces.py | 6 +++--- plone/app/discussion/profiles/default/metadata.xml | 5 ++++- plone/app/discussion/profiles/default/registry.xml | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/plone/app/discussion/interfaces.py b/plone/app/discussion/interfaces.py index 5dd9c6f..fa75041 100644 --- a/plone/app/discussion/interfaces.py +++ b/plone/app/discussion/interfaces.py @@ -11,9 +11,9 @@ class IDiscussionSettings(Interface): configuration registry and obtainable via plone.registry. """ - #globally_enabled = schema.Bool(title=_(u"Globally enabled"), - # description=_(u"Use this setting to enable or disable comments globally"), - # default=True) + globally_enabled = schema.Bool(title=_(u"Globally enabled"), + description=_(u"Use this setting to enable or disable comments globally"), + default=True) class IConversation(IIterableMapping): """A conversation about a content object. diff --git a/plone/app/discussion/profiles/default/metadata.xml b/plone/app/discussion/profiles/default/metadata.xml index 6d5e9a9..0529698 100644 --- a/plone/app/discussion/profiles/default/metadata.xml +++ b/plone/app/discussion/profiles/default/metadata.xml @@ -1,3 +1,6 @@ - 1 + 1 + + profile-plone.app.registry:default + \ No newline at end of file diff --git a/plone/app/discussion/profiles/default/registry.xml b/plone/app/discussion/profiles/default/registry.xml index 30e0967..fd2a894 100644 --- a/plone/app/discussion/profiles/default/registry.xml +++ b/plone/app/discussion/profiles/default/registry.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file