From: Maurits v. R. <svn...@pl...> - 2008-08-30 20:18:34
|
Author: maurits Date: Sat Aug 30 20:18:32 2008 New Revision: 70935 Modified: Products.Poi/trunk/Products/Poi/browser/response.py Log: Store the title of the before/after workflow state in the changes of the response. That gets translated in the browser. Modified: Products.Poi/trunk/Products/Poi/browser/response.py ============================================================================== --- Products.Poi/trunk/Products/Poi/browser/response.py (original) +++ Products.Poi/trunk/Products/Poi/browser/response.py Sat Aug 30 20:18:32 2008 @@ -370,8 +370,10 @@ if transition and transition in self.available_transitions: wftool = getToolByName(context, 'portal_workflow') before = wftool.getInfoFor(context, 'review_state') + before = wftool.getTitleForStateOnType(before, 'PoiIssue') wftool.doActionFor(context, transition) after = wftool.getInfoFor(context, 'review_state') + after = wftool.getTitleForStateOnType(after, 'PoiIssue') new_response.add_change('review_state', _(u'Issue state'), before, after) issue_has_changed = True |