diff --git a/plone/app/discussion/browser/moderation.py b/plone/app/discussion/browser/moderation.py index b3d12b2..2350f4f 100644 --- a/plone/app/discussion/browser/moderation.py +++ b/plone/app/discussion/browser/moderation.py @@ -11,10 +11,14 @@ from Products.statusmessages.interfaces import IStatusMessage from plone.app.discussion.interfaces import _ from plone.app.discussion.interfaces import IComment -# Begin ugly hack. It works around a ContentProviderLookupError: plone.htmlhead error caused by Zope 2 permissions. +# Begin ugly hack. It works around a ContentProviderLookupError: +# plone.htmlhead error caused by Zope 2 permissions. # This error occured on Plone 3.3.x only! # -# Source: http://athenageek.wordpress.com/2008/01/08/contentproviderlookuperror-plonehtmlhead/ +# Source: +# http://athenageek.wordpress.com/2008/01/08/ +# contentproviderlookuperror-plonehtmlhead/ +# # Bug report: https://bugs.launchpad.net/zope2/+bug/176566 # @@ -96,7 +100,8 @@ class DeleteComment(BrowserView): _("Comment deleted."), type="info") - return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER) + return self.context.REQUEST.RESPONSE.redirect( + self.context.REQUEST.HTTP_REFERER) class PublishComment(BrowserView): """Publish a comment @@ -116,7 +121,9 @@ class PublishComment(BrowserView): _("Comment approved."), type="info") - return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER) + return self.context.REQUEST.RESPONSE.redirect( + self.context.REQUEST.HTTP_REFERER) + class BulkActionsView(BrowserView): """Bulk actions (unapprove, approve, delete, mark as spam).