Obey the 80 chars limit.

svn path=/plone.app.discussion/trunk/; revision=39570
This commit is contained in:
Timo Stollenwerk 2010-08-31 17:33:22 +00:00
parent d59369a408
commit 77d3bc2eb1
1 changed files with 11 additions and 4 deletions

View File

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