remove return REQUEST statements for AJAX calls, since they are unnecessary.

svn path=/plone.app.discussion/trunk/; revision=27718
This commit is contained in:
Timo Stollenwerk 2009-06-29 12:24:10 +00:00
parent da2402865f
commit 8df9ad9cf4

View File

@ -95,8 +95,6 @@ class DeleteComment(BrowserView):
del conversation[comment_id] del conversation[comment_id]
return context.REQUEST.RESPONSE.redirect(context.REQUEST.HTTP_REFERER)
class PublishComment(BrowserView): class PublishComment(BrowserView):
"""Publish a comment """Publish a comment
""" """
@ -113,8 +111,6 @@ class PublishComment(BrowserView):
catalog = getToolByName(comment, 'portal_catalog') catalog = getToolByName(comment, 'portal_catalog')
catalog.reindexObject(comment) catalog.reindexObject(comment)
return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)
class BulkActionsView(BrowserView): class BulkActionsView(BrowserView):
"""Bulk actions (unapprove, approve, delete, mark as spam). """Bulk actions (unapprove, approve, delete, mark as spam).
""" """