Commit 962aed5b authored by Jérome Perrin's avatar Jérome Perrin

After list mode workflow state change, reset the selection checked uids.

Also use Base_redirect instead of request.RESPONSE.redirect


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 344f929a
...@@ -79,11 +79,14 @@ for parameters in listbox:\n ...@@ -79,11 +79,14 @@ for parameters in listbox:\n
workflow_id=workflow_id,\n workflow_id=workflow_id,\n
comment=comment)\n comment=comment)\n
\n \n
# activate something on the module after everything, so that user can know that something is happening in the background\n
context.activate(after_tag=tag).getTitle()\n context.activate(after_tag=tag).getTitle()\n
\n \n
return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n # reset selection checked uids\n
context.absolute_url(), form_id,\n context.portal_selections.setSelectionCheckedUidsFor(selection_name, [])\n
translateString("Workflow modification in progress.")))\n \n
return context.Base_redirect(form_id,\n
keep_items=dict(portal_status_message=translateString("Workflow modification in progress.")))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -94,7 +97,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n ...@@ -94,7 +97,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>listbox=None, comment=\'\', form_id=\'view\', **kw</string> </value> <value> <string>listbox=None, comment=\'\', form_id=\'view\', selection_name=\'\', **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -114,7 +117,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n ...@@ -114,7 +117,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>3</int> </value> <value> <int>4</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
...@@ -123,6 +126,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n ...@@ -123,6 +126,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n
<string>listbox</string> <string>listbox</string>
<string>comment</string> <string>comment</string>
<string>form_id</string> <string>form_id</string>
<string>selection_name</string>
<string>kw</string> <string>kw</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>translateString</string> <string>translateString</string>
...@@ -141,6 +145,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n ...@@ -141,6 +145,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n
<string>zip</string> <string>zip</string>
<string>workflow_action</string> <string>workflow_action</string>
<string>workflow_id</string> <string>workflow_id</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -156,6 +161,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n ...@@ -156,6 +161,7 @@ return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n
<none/> <none/>
<string></string> <string></string>
<string>view</string> <string>view</string>
<string></string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1095 1096
\ 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