Pep8
This commit is contained in:
parent
0558a9b739
commit
2d4f7fd665
@ -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'])
|
||||
|
||||
|
@ -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,7 +113,8 @@ class IDiscussionSettings(Interface):
|
||||
)
|
||||
|
||||
moderator_email = schema.ASCIILine(
|
||||
title = _(u'label_moderator_email', default=u'Moderator Email Address'),
|
||||
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."),
|
||||
@ -322,6 +322,7 @@ class ICommentingTool(Interface):
|
||||
"""Perform a search over all indexed comments.
|
||||
"""
|
||||
|
||||
|
||||
class IDiscussionLayer(Interface):
|
||||
"""Request marker installed via browserlayer.xml.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user