Pep8
This commit is contained in:
parent
81fd515455
commit
c14091c734
@ -32,8 +32,8 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
|
|||||||
id = "DiscussionSettingsEditForm"
|
id = "DiscussionSettingsEditForm"
|
||||||
label = _(u"Discussion settings")
|
label = _(u"Discussion settings")
|
||||||
description = _(u"help_discussion_settings_editform",
|
description = _(u"help_discussion_settings_editform",
|
||||||
default=u"Some discussion related settings are not located "
|
default=u"Some discussion related settings are not "
|
||||||
"in the Discussion Control Panel.\n"
|
"located in the Discussion Control Panel.\n"
|
||||||
"To enable comments for a specific content type, "
|
"To enable comments for a specific content type, "
|
||||||
"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"
|
||||||
@ -125,7 +125,8 @@ class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper):
|
|||||||
|
|
||||||
# Workflow
|
# Workflow
|
||||||
wftool = getToolByName(self.context, 'portal_workflow', None)
|
wftool = getToolByName(self.context, 'portal_workflow', None)
|
||||||
discussion_workflow = wftool.getChainForPortalType('Discussion Item')[0]
|
discussion_workflow = \
|
||||||
|
wftool.getChainForPortalType('Discussion Item')[0]
|
||||||
if discussion_workflow:
|
if discussion_workflow:
|
||||||
output.append(discussion_workflow)
|
output.append(discussion_workflow)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user