This commit is contained in:
tisto 2012-01-14 07:30:43 +01:00
parent 0558a9b739
commit 2d4f7fd665
3 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
from zope.i18nmessageid import MessageFactory
PloneAppDiscussionMessageFactory = MessageFactory('plone.app.discussion')
PloneAppDiscussionMessageFactory = MessageFactory('plone.app.discussion')

View File

@ -36,6 +36,7 @@ try:
except ImportError:
pass
class CaptchaValidator(validator.SimpleFieldValidator):
implements(IValidator)
adapts(Interface, IDiscussionLayer, Interface, IField, Interface)
@ -63,4 +64,3 @@ class CaptchaValidator(validator.SimpleFieldValidator):
# Register Captcha validator for the Captcha field in the ICaptcha Form
validator.WidgetValidatorDiscriminators(CaptchaValidator,
field=ICaptcha['captcha'])

View File

@ -50,16 +50,15 @@ class IDiscussionSettings(Interface):
description=_(u"help_moderation_enabled",
default=u"If selected, comments will enter a 'Pending' state "
"in which they are invisible to the public. A user "
"with the 'Review comments' permission ('Reviewer' or "
"'Manager') can approve comments to make them visible "
"to the public. If you want to enable a custom "
"comment workflow, you have to go to the types "
"control panel."),
"with the 'Review comments' permission ('Reviewer' "
"or 'Manager') can approve comments to make them "
"visible to the public. If you want to enable a "
"custom comment workflow, you have to go to the "
"types control panel."),
required=False,
default=False,
)
text_transform = schema.Choice(
title=_(u"label_text_transform",
default="Comment text transform"),
@ -114,11 +113,12 @@ class IDiscussionSettings(Interface):
)
moderator_email = schema.ASCIILine(
title = _(u'label_moderator_email', default=u'Moderator Email Address'),
description = _(u'help_moderator_email',
default=u"Address to which moderator notifications "
u"will be sent."),
required = False,
title=_(u'label_moderator_email',
default=u'Moderator Email Address'),
description=_(u'help_moderator_email',
default=u"Address to which moderator notifications "
u"will be sent."),
required=False,
)
user_notification_enabled = schema.Bool(
@ -322,6 +322,7 @@ class ICommentingTool(Interface):
"""Perform a search over all indexed comments.
"""
class IDiscussionLayer(Interface):
"""Request marker installed via browserlayer.xml.
"""