fix a Depression Warning stable
authorAlain Leufroy <alain.leufroy@logilab.fr>
Thu, 04 Mar 2010 08:50:21 +0100
branchstable
changeset 4780 58432e8e7dde
parent 4779 dce36da37d40
child 4781 d12cbd0b7574
fix a Depression Warning replace self.req._(... by self._cw._(...
web/views/workflow.py
--- a/web/views/workflow.py	Thu Mar 04 08:50:03 2010 +0100
+++ b/web/views/workflow.py	Thu Mar 04 08:50:21 2010 +0100
@@ -67,7 +67,7 @@
         form = self.get_form(entity, transition)
         self.w(u'<h4>%s %s</h4>\n' % (self._cw._(transition.name),
                                       entity.view('oneline')))
-        msg = self.req._('status will change from %(st1)s to %(st2)s') % {
+        msg = self._cw._('status will change from %(st1)s to %(st2)s') % {
             'st1': entity.printable_state,
             'st2': self._cw._(transition.destination(entity).name)}
         self.w(u'<p>%s</p>\n' % msg)