From d59369a4083c5c6a1e835d725212ac2603175501 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 31 Aug 2010 17:31:27 +0000 Subject: [PATCH] Obey the 80 chars limit. svn path=/plone.app.discussion/trunk/; revision=39569 --- plone/app/discussion/browser/controlpanel.py | 26 +++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/plone/app/discussion/browser/controlpanel.py b/plone/app/discussion/browser/controlpanel.py index bbe5388..9f29bdd 100644 --- a/plone/app/discussion/browser/controlpanel.py +++ b/plone/app/discussion/browser/controlpanel.py @@ -18,24 +18,32 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm): "go to the Types Control Panel of this type and " "choose \"Allow comments\".\n" "To enable the moderation workflow for comments, " - "go to the Types Control Panel, choose \"Comment\" " - "and set workflow to \"Comment Review Workflow\".") + "go to the Types Control Panel, choose " + "\"Comment\" and set workflow to " + "\"Comment Review Workflow\".") def updateFields(self): super(DiscussionSettingsEditForm, self).updateFields() - self.fields['globally_enabled'].widgetFactory = SingleCheckBoxFieldWidget - self.fields['anonymous_comments'].widgetFactory = SingleCheckBoxFieldWidget - self.fields['show_commenter_image'].widgetFactory = SingleCheckBoxFieldWidget - self.fields['moderator_notification_enabled'].widgetFactory = SingleCheckBoxFieldWidget - #self.fields['user_notification_enabled'].widgetFactory = SingleCheckBoxFieldWidget + self.fields['globally_enabled'].widgetFactory = \ + SingleCheckBoxFieldWidget + self.fields['anonymous_comments'].widgetFactory = \ + SingleCheckBoxFieldWidget + self.fields['show_commenter_image'].widgetFactory = \ + SingleCheckBoxFieldWidget + self.fields['moderator_notification_enabled'].widgetFactory = \ + SingleCheckBoxFieldWidget + #self.fields['user_notification_enabled'].widgetFactory = \ + # SingleCheckBoxFieldWidget def updateWidgets(self): super(DiscussionSettingsEditForm, self).updateWidgets() self.widgets['globally_enabled'].label = _(u"Enable Comments") self.widgets['anonymous_comments'].label = _(u"Anonymous Comments") self.widgets['show_commenter_image'].label = _(u"Commenter Image") - self.widgets['moderator_notification_enabled'].label = _(u"Moderator Email Notification") - #self.widgets['user_notification_enabled'].label = _(u"User Email Notification") + self.widgets['moderator_notification_enabled'].label = \ + _(u"Moderator Email Notification") + #self.widgets['user_notification_enabled'].label = \ + # _(u"User Email Notification") class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper):