Commit d8b8b318 authored by Romain Courteaud's avatar Romain Courteaud

Try to get the status message from the request

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19187 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 970b0285
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -135,9 +132,11 @@ except ValidationFailed, error_message:\n ...@@ -135,9 +132,11 @@ except ValidationFailed, error_message:\n
\'%s/%s\' % (context.absolute_url(), form_id),\n \'%s/%s\' % (context.absolute_url(), form_id),\n
keep_items={\'portal_status_message\': message}, **kw)\n keep_items={\'portal_status_message\': message}, **kw)\n
\n \n
portal_status_message = request.get(\'portal_status_message\', N_(\'Status changed.\'))\n
\n
return context.ERP5Site_redirect(\n return context.ERP5Site_redirect(\n
\'%s/%s\' % (context.absolute_url(), form_id),\n \'%s/%s\' % (context.absolute_url(), form_id),\n
keep_items={\'portal_status_message\': N_(\'Status changed.\')})\n keep_items={\'portal_status_message\': portal_status_message})\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -225,6 +224,7 @@ return context.ERP5Site_redirect(\n ...@@ -225,6 +224,7 @@ return context.ERP5Site_redirect(\n
<string>hasattr</string> <string>hasattr</string>
<string>message</string> <string>message</string>
<string>str</string> <string>str</string>
<string>portal_status_message</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
490 491
\ 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