Commit c2849d3a authored by Yusei Tahara's avatar Yusei Tahara

Don't convert Message object to string. This is used when user see workflow history.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23221 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 291f6e78
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Message import Message\n <value> <string>from Products.ERP5Type.Message import Message\n
\n \n
N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n # Return Message object, so that this message will be translated when it is rendered later.\n
N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
\n \n
payment_transaction = context\n payment_transaction = context\n
\n \n
......
747 748
\ No newline at end of file \ No newline at end of file
...@@ -80,7 +80,8 @@ except ImportError:\n ...@@ -80,7 +80,8 @@ except ImportError:\n
class WorkflowException(Exception):\n class WorkflowException(Exception):\n
pass\n pass\n
\n \n
N_ = lambda msg, **kw: str(Message(\'erp5_ui\', msg, **kw))\n # Return Message object, so that this message will be translated when it is rendered later.\n
N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
\n \n
invoice = context\n invoice = context\n
\n \n
......
122 123
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment