[Erp5-report] r24162 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 13 18:31:55 CEST 2008


Author: romain
Date: Mon Oct 13 18:31:54 2008
New Revision: 24162

URL: http://svn.erp5.org?rev=24162&view=rev
Log:
Allow to redirect to another document when passing a workflow transition.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml?rev=24162&r1=24161&r2=24162&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Workflow_statusModify.xml Mon Oct 13 18:31:54 2008
@@ -125,8 +125,12 @@
 \n
 portal_status_message = request.get(\'portal_status_message\', translateString(\'Status changed.\'))\n
 \n
+# Allow to redirect to another document\n
+redirect_document_path = request.get(\'redirect_document_path\', context.getRelativeUrl())\n
+redirect_document = context.restrictedTraverse(redirect_document_path)\n
+\n
 return context.ERP5Site_redirect(\n
-                \'%s/%s\' % (context.absolute_url(), form_id),\n
+                \'%s/%s\' % (redirect_document.absolute_url(), form_id),\n
                 keep_items={\'portal_status_message\': portal_status_message})\n
 </string> </value>
         </item>
@@ -203,6 +207,8 @@
                             <string>same_type</string>
                             <string>str</string>
                             <string>portal_status_message</string>
+                            <string>redirect_document_path</string>
+                            <string>redirect_document</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=24162&r1=24161&r2=24162&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Mon Oct 13 18:31:54 2008
@@ -1,1 +1,1 @@
-622
+624




More information about the Erp5-report mailing list