fix the portal messages for deleting and workflow actions.

svn path=/plone.app.discussion/trunk/; revision=27444
This commit is contained in:
Timo Stollenwerk 2009-06-14 17:11:53 +00:00
parent 5e26227ea1
commit dcc8c329eb

View File

@ -220,7 +220,7 @@ class DeleteComment(BrowserView):
del conversation[comment_id] 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) return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)
class PublishComment(BrowserView): class PublishComment(BrowserView):
@ -236,5 +236,5 @@ class PublishComment(BrowserView):
portal_workflow = getToolByName(comment, 'portal_workflow') portal_workflow = getToolByName(comment, 'portal_workflow')
portal_workflow.doActionFor(comment, workflow_action) 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) return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)