Obey the 80 chars limit.
svn path=/plone.app.discussion/trunk/; revision=39569
This commit is contained in:
parent
9c5f1dd1d8
commit
d59369a408
@ -18,24 +18,32 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
|
|||||||
"go to the Types Control Panel of this type and "
|
"go to the Types Control Panel of this type and "
|
||||||
"choose \"Allow comments\".\n"
|
"choose \"Allow comments\".\n"
|
||||||
"To enable the moderation workflow for comments, "
|
"To enable the moderation workflow for comments, "
|
||||||
"go to the Types Control Panel, choose \"Comment\" "
|
"go to the Types Control Panel, choose "
|
||||||
"and set workflow to \"Comment Review Workflow\".")
|
"\"Comment\" and set workflow to "
|
||||||
|
"\"Comment Review Workflow\".")
|
||||||
|
|
||||||
def updateFields(self):
|
def updateFields(self):
|
||||||
super(DiscussionSettingsEditForm, self).updateFields()
|
super(DiscussionSettingsEditForm, self).updateFields()
|
||||||
self.fields['globally_enabled'].widgetFactory = SingleCheckBoxFieldWidget
|
self.fields['globally_enabled'].widgetFactory = \
|
||||||
self.fields['anonymous_comments'].widgetFactory = SingleCheckBoxFieldWidget
|
SingleCheckBoxFieldWidget
|
||||||
self.fields['show_commenter_image'].widgetFactory = SingleCheckBoxFieldWidget
|
self.fields['anonymous_comments'].widgetFactory = \
|
||||||
self.fields['moderator_notification_enabled'].widgetFactory = SingleCheckBoxFieldWidget
|
SingleCheckBoxFieldWidget
|
||||||
#self.fields['user_notification_enabled'].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):
|
def updateWidgets(self):
|
||||||
super(DiscussionSettingsEditForm, self).updateWidgets()
|
super(DiscussionSettingsEditForm, self).updateWidgets()
|
||||||
self.widgets['globally_enabled'].label = _(u"Enable Comments")
|
self.widgets['globally_enabled'].label = _(u"Enable Comments")
|
||||||
self.widgets['anonymous_comments'].label = _(u"Anonymous Comments")
|
self.widgets['anonymous_comments'].label = _(u"Anonymous Comments")
|
||||||
self.widgets['show_commenter_image'].label = _(u"Commenter Image")
|
self.widgets['show_commenter_image'].label = _(u"Commenter Image")
|
||||||
self.widgets['moderator_notification_enabled'].label = _(u"Moderator Email Notification")
|
self.widgets['moderator_notification_enabled'].label = \
|
||||||
#self.widgets['user_notification_enabled'].label = _(u"User Email Notification")
|
_(u"Moderator Email Notification")
|
||||||
|
#self.widgets['user_notification_enabled'].label = \
|
||||||
|
# _(u"User Email Notification")
|
||||||
|
|
||||||
|
|
||||||
class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper):
|
class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper):
|
||||||
|
Loading…
Reference in New Issue
Block a user