[Erp5-report] r25743 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 27 16:07:29 CET 2009


Author: jerome
Date: Fri Feb 27 16:07:26 2009
New Revision: 25743

URL: http://svn.erp5.org?rev=25743&view=rev
Log:
After list mode workflow state change, reset the selection checked uids.
Also use Base_redirect instead of request.RESPONSE.redirect

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml?rev=25743&r1=25742&r2=25743&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml [utf8] Fri Feb 27 16:07:26 2009
@@ -79,11 +79,14 @@
                                         workflow_id=workflow_id,\n
                                         comment=comment)\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
 \n
-return request.RESPONSE.redirect( \'%s/%s?portal_status_message=%s\' % (\n
-                         context.absolute_url(), form_id,\n
-                        translateString("Workflow modification in progress.")))\n
+# reset selection checked uids\n
+context.portal_selections.setSelectionCheckedUidsFor(selection_name, [])\n
+\n
+return context.Base_redirect(form_id,\n
+          keep_items=dict(portal_status_message=translateString("Workflow modification in progress.")))\n
 </string> </value>
         </item>
         <item>
@@ -94,7 +97,7 @@
         </item>
         <item>
             <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>
             <key> <string>errors</string> </key>
@@ -114,7 +117,7 @@
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>3</int> </value>
+                        <value> <int>4</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
@@ -123,6 +126,7 @@
                             <string>listbox</string>
                             <string>comment</string>
                             <string>form_id</string>
+                            <string>selection_name</string>
                             <string>kw</string>
                             <string>Products.ERP5Type.Message</string>
                             <string>translateString</string>
@@ -141,6 +145,7 @@
                             <string>zip</string>
                             <string>workflow_action</string>
                             <string>workflow_id</string>
+                            <string>dict</string>
                           </tuple>
                         </value>
                     </item>
@@ -156,6 +161,7 @@
                 <none/>
                 <string></string>
                 <string>view</string>
+                <string></string>
               </tuple>
             </value>
         </item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=25743&r1=25742&r2=25743&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Fri Feb 27 16:07:26 2009
@@ -1,1 +1,1 @@
-1095
+1096




More information about the Erp5-report mailing list