From 77d3bc2eb1b5b8a9d8caac828f2e0a26deee7fff Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 31 Aug 2010 17:33:22 +0000 Subject: [PATCH] Obey the 80 chars limit. svn path=/plone.app.discussion/trunk/; revision=39570 --- plone/app/discussion/browser/moderation.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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).