From dcc8c329eb558e1914132dfa415169c53d9794c2 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 14 Jun 2009 17:11:53 +0000 Subject: [PATCH] fix the portal messages for deleting and workflow actions. svn path=/plone.app.discussion/trunk/; revision=27444 --- plone/app/discussion/browser/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 9f333eb..a3a04d9 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -220,7 +220,7 @@ class DeleteComment(BrowserView): del conversation[comment_id] - self.context.plone_utils.addPortalMessage('Conversation %s deleted' % comment_id) + self.context.plone_utils.addPortalMessage('Comment %s deleted' % comment_id) return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER) class PublishComment(BrowserView): @@ -236,5 +236,5 @@ class PublishComment(BrowserView): portal_workflow = getToolByName(comment, 'portal_workflow') portal_workflow.doActionFor(comment, workflow_action) - self.context.plone_utils.addPortalMessage('Conversation %s workflow action %s' % (comment_id, workflow_action)) + self.context.plone_utils.addPortalMessage('Workflow action for commment %s changed (%s)' % (comment_id, workflow_action)) return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)