From 8df9ad9cf497a793c74523f81753f85224ae5df0 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Mon, 29 Jun 2009 12:24:10 +0000 Subject: [PATCH] remove return REQUEST statements for AJAX calls, since they are unnecessary. svn path=/plone.app.discussion/trunk/; revision=27718 --- plone/app/discussion/browser/moderation.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plone/app/discussion/browser/moderation.py b/plone/app/discussion/browser/moderation.py index 5d0c47a..eb22234 100644 --- a/plone/app/discussion/browser/moderation.py +++ b/plone/app/discussion/browser/moderation.py @@ -95,8 +95,6 @@ class DeleteComment(BrowserView): del conversation[comment_id] - return context.REQUEST.RESPONSE.redirect(context.REQUEST.HTTP_REFERER) - class PublishComment(BrowserView): """Publish a comment """ @@ -113,8 +111,6 @@ class PublishComment(BrowserView): catalog = getToolByName(comment, 'portal_catalog') catalog.reindexObject(comment) - return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER) - class BulkActionsView(BrowserView): """Bulk actions (unapprove, approve, delete, mark as spam). """