Obey the 80 chars limit.

svn path=/plone.app.discussion/trunk/; revision=39569
This commit is contained in:
Timo Stollenwerk 2010-08-31 17:31:27 +00:00
parent 9c5f1dd1d8
commit d59369a408
1 changed files with 17 additions and 9 deletions

View File

@ -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):