Pep8.
This commit is contained in:
parent
b151244138
commit
607719fd42
@ -47,8 +47,10 @@ class IConversation(IIterableMapping):
|
|||||||
)
|
)
|
||||||
|
|
||||||
public_commentators = schema.Set(
|
public_commentators = schema.Set(
|
||||||
title=_(u"The set of unique commentators (usernames) of"
|
title=_(
|
||||||
" published_comments"),
|
u"The set of unique commentators (usernames) of"
|
||||||
|
u" published_comments"
|
||||||
|
),
|
||||||
readonly=True,
|
readonly=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -156,12 +158,19 @@ class IComment(Interface):
|
|||||||
default=u"Subject"))
|
default=u"Subject"))
|
||||||
|
|
||||||
mime_type = schema.ASCIILine(title=_(u"MIME type"), default="text/plain")
|
mime_type = schema.ASCIILine(title=_(u"MIME type"), default="text/plain")
|
||||||
text = schema.Text(title=_(u"label_comment",
|
text = schema.Text(
|
||||||
default=u"Comment"))
|
title=_(
|
||||||
|
u"label_comment",
|
||||||
|
default=u"Comment"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
user_notification = schema.Bool(title=_(u"Notify me of new comments via "
|
user_notification = schema.Bool(
|
||||||
"email."),
|
title=_(
|
||||||
required=False)
|
u"Notify me of new comments via email."
|
||||||
|
),
|
||||||
|
required=False
|
||||||
|
)
|
||||||
|
|
||||||
creator = schema.TextLine(title=_(u"Username of the commenter"))
|
creator = schema.TextLine(title=_(u"Username of the commenter"))
|
||||||
creation_date = schema.Date(title=_(u"Creation date"))
|
creation_date = schema.Date(title=_(u"Creation date"))
|
||||||
@ -221,11 +230,13 @@ class IDiscussionSettings(Interface):
|
|||||||
globally_enabled = schema.Bool(
|
globally_enabled = schema.Bool(
|
||||||
title=_(u"label_globally_enabled",
|
title=_(u"label_globally_enabled",
|
||||||
default=u"Globally enable comments"),
|
default=u"Globally enable comments"),
|
||||||
description=_(u"help_globally_enabled",
|
description=_(
|
||||||
|
u"help_globally_enabled",
|
||||||
default=u"If selected, users are able to post comments on the "
|
default=u"If selected, users are able to post comments on the "
|
||||||
"site. Though, you have to enable comments for "
|
u"site. Though, you have to enable comments for "
|
||||||
"specific content types, folders or content objects "
|
u"specific content types, folders or content objects "
|
||||||
"before users will be able to post comments."),
|
u"before users will be able to post comments."
|
||||||
|
),
|
||||||
required=False,
|
required=False,
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
@ -233,26 +244,32 @@ class IDiscussionSettings(Interface):
|
|||||||
anonymous_comments = schema.Bool(
|
anonymous_comments = schema.Bool(
|
||||||
title=_(u"label_anonymous_comments",
|
title=_(u"label_anonymous_comments",
|
||||||
default="Enable anonymous comments"),
|
default="Enable anonymous comments"),
|
||||||
description=_(u"help_anonymous_comments",
|
description=_(
|
||||||
|
u"help_anonymous_comments",
|
||||||
default=u"If selected, anonymous users are able to post "
|
default=u"If selected, anonymous users are able to post "
|
||||||
"comments without loggin in. It is highly "
|
u"comments without loggin in. It is highly "
|
||||||
"recommended to use a captcha solution to prevent "
|
u"recommended to use a captcha solution to prevent "
|
||||||
"spam if this setting is enabled."),
|
u"spam if this setting is enabled."
|
||||||
|
),
|
||||||
required=False,
|
required=False,
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
moderation_enabled = schema.Bool(
|
moderation_enabled = schema.Bool(
|
||||||
title=_(u"label_moderation_enabled",
|
title=_(
|
||||||
default="Enable comment moderation"),
|
u"label_moderation_enabled",
|
||||||
description=_(u"help_moderation_enabled",
|
default="Enable comment moderation"
|
||||||
|
),
|
||||||
|
description=_(
|
||||||
|
u"help_moderation_enabled",
|
||||||
default=u"If selected, comments will enter a 'Pending' state "
|
default=u"If selected, comments will enter a 'Pending' state "
|
||||||
"in which they are invisible to the public. A user "
|
u"in which they are invisible to the public. A user "
|
||||||
"with the 'Review comments' permission ('Reviewer' "
|
u"with the 'Review comments' permission ('Reviewer' "
|
||||||
"or 'Manager') can approve comments to make them "
|
u"or 'Manager') can approve comments to make them "
|
||||||
"visible to the public. If you want to enable a "
|
u"visible to the public. If you want to enable a "
|
||||||
"custom comment workflow, you have to go to the "
|
u"custom comment workflow, you have to go to the "
|
||||||
"types control panel."),
|
u"types control panel."
|
||||||
|
),
|
||||||
required=False,
|
required=False,
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
@ -260,14 +277,15 @@ class IDiscussionSettings(Interface):
|
|||||||
text_transform = schema.Choice(
|
text_transform = schema.Choice(
|
||||||
title=_(u"label_text_transform",
|
title=_(u"label_text_transform",
|
||||||
default="Comment text transform"),
|
default="Comment text transform"),
|
||||||
description=_(u"help_text_transform",
|
description=_(
|
||||||
|
u"help_text_transform",
|
||||||
default=u"Use this setting to choose if the comment text " +
|
default=u"Use this setting to choose if the comment text " +
|
||||||
"should be transformed in any way. You can choose "
|
u"should be transformed in any way. You can choose "
|
||||||
"between 'Plain text' and 'Intelligent text'. " +
|
u"between 'Plain text' and 'Intelligent text'. " +
|
||||||
"'Intelligent text' converts plain text into HTML " +
|
u"'Intelligent text' converts plain text into HTML " +
|
||||||
"where line breaks and indentation is preserved, " +
|
u"where line breaks and indentation is preserved, " +
|
||||||
"and web and email addresses are made into " +
|
u"and web and email addresses are made into " +
|
||||||
"clickable links."),
|
u"clickable links."),
|
||||||
required=True,
|
required=True,
|
||||||
default='text/plain',
|
default='text/plain',
|
||||||
vocabulary='plone.app.discussion.vocabularies.TextTransformVocabulary',
|
vocabulary='plone.app.discussion.vocabularies.TextTransformVocabulary',
|
||||||
@ -276,13 +294,14 @@ class IDiscussionSettings(Interface):
|
|||||||
captcha = schema.Choice(
|
captcha = schema.Choice(
|
||||||
title=_(u"label_captcha",
|
title=_(u"label_captcha",
|
||||||
default="Captcha"),
|
default="Captcha"),
|
||||||
description=_(u"help_captcha",
|
description=_(
|
||||||
|
u"help_captcha",
|
||||||
default=u"Use this setting to enable or disable Captcha "
|
default=u"Use this setting to enable or disable Captcha "
|
||||||
"validation for comments. Install "
|
u"validation for comments. Install "
|
||||||
"plone.formwidget.captcha, "
|
u"plone.formwidget.captcha, "
|
||||||
"plone.formwidget.recaptcha, collective.akismet, or "
|
u"plone.formwidget.recaptcha, collective.akismet, or "
|
||||||
"collective.z3cform.norobots if there are no options "
|
u"collective.z3cform.norobots if there are no options "
|
||||||
"available."),
|
u"available."),
|
||||||
required=True,
|
required=True,
|
||||||
default='disabled',
|
default='disabled',
|
||||||
vocabulary='plone.app.discussion.vocabularies.CaptchaVocabulary',
|
vocabulary='plone.app.discussion.vocabularies.CaptchaVocabulary',
|
||||||
@ -291,9 +310,10 @@ class IDiscussionSettings(Interface):
|
|||||||
show_commenter_image = schema.Bool(
|
show_commenter_image = schema.Bool(
|
||||||
title=_(u"label_show_commenter_image",
|
title=_(u"label_show_commenter_image",
|
||||||
default=u"Show commenter image"),
|
default=u"Show commenter image"),
|
||||||
description=_(u"help_show_commenter_image",
|
description=_(
|
||||||
|
u"help_show_commenter_image",
|
||||||
default=u"If selected, an image of the user is shown next to "
|
default=u"If selected, an image of the user is shown next to "
|
||||||
"the comment."),
|
u"the comment."),
|
||||||
required=False,
|
required=False,
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
@ -301,39 +321,48 @@ class IDiscussionSettings(Interface):
|
|||||||
moderator_notification_enabled = schema.Bool(
|
moderator_notification_enabled = schema.Bool(
|
||||||
title=_(u"label_moderator_notification_enabled",
|
title=_(u"label_moderator_notification_enabled",
|
||||||
default=u"Enable moderator email notification"),
|
default=u"Enable moderator email notification"),
|
||||||
description=_(u"help_moderator_notification_enabled",
|
description=_(
|
||||||
|
u"help_moderator_notification_enabled",
|
||||||
default=u"If selected, the moderator is notified if a comment "
|
default=u"If selected, the moderator is notified if a comment "
|
||||||
"needs attention. The moderator email address can " +
|
u"needs attention. The moderator email address can " +
|
||||||
"be found in the 'Mail settings' control panel "
|
u"be found in the 'Mail settings' control panel "
|
||||||
"(Site 'From' address)"),
|
u"(Site 'From' address)"),
|
||||||
required=False,
|
required=False,
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
moderator_email = schema.ASCIILine(
|
moderator_email = schema.ASCIILine(
|
||||||
title=_(u'label_moderator_email',
|
title=_(
|
||||||
default=u'Moderator Email Address'),
|
u'label_moderator_email',
|
||||||
description=_(u'help_moderator_email',
|
default=u'Moderator Email Address'
|
||||||
|
),
|
||||||
|
description=_(
|
||||||
|
u'help_moderator_email',
|
||||||
default=u"Address to which moderator notifications "
|
default=u"Address to which moderator notifications "
|
||||||
u"will be sent."),
|
u"will be sent."),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
user_notification_enabled = schema.Bool(
|
user_notification_enabled = schema.Bool(
|
||||||
title=_(u"label_user_notification_enabled",
|
title=_(
|
||||||
default=u"Enable user email notification"),
|
u"label_user_notification_enabled",
|
||||||
description=_(u"help_user_notification_enabled",
|
default=u"Enable user email notification"
|
||||||
|
),
|
||||||
|
description=_(
|
||||||
|
u"help_user_notification_enabled",
|
||||||
default=u"If selected, users can choose to be notified "
|
default=u"If selected, users can choose to be notified "
|
||||||
"of new comments by email."),
|
u"of new comments by email."),
|
||||||
required=False,
|
required=False,
|
||||||
default=False)
|
default=False
|
||||||
|
)
|
||||||
|
|
||||||
anonymous_email_enabled = schema.Bool(
|
anonymous_email_enabled = schema.Bool(
|
||||||
title=_(u"label_anonymous_email_enabled",
|
title=_(u"label_anonymous_email_enabled",
|
||||||
default=u"Enable anonymous email field"),
|
default=u"Enable anonymous email field"),
|
||||||
description=_(u"help_anonymous_email_enabled",
|
description=_(
|
||||||
|
u"help_anonymous_email_enabled",
|
||||||
default=u"If selected, anonymous user will have to "
|
default=u"If selected, anonymous user will have to "
|
||||||
"give their email."),
|
u"give their email."),
|
||||||
required=False,
|
required=False,
|
||||||
default=False)
|
default=False)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user