[Erp5-report] r19186 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/docum...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 8 16:37:44 CET 2008
Author: romain
Date: Fri Feb 8 16:37:43 2008
New Revision: 19186
URL: http://svn.erp5.org?rev=19186&view=rev
Log:
Check that it's possible to change the message displayed by Workflow_statusModify
Added:
erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testChangeWorkflowTransitionMessage.xml
erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/scripts/changeStatusMessage.xml
erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status.xml
erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status_action.xml
Modified:
erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml
erp5/trunk/bt5/erp5_ui_test/bt/revision
Added: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testChangeWorkflowTransitionMessage.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testChangeWorkflowTransitionMessage.xml?rev=19186&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testChangeWorkflowTransitionMessage.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testChangeWorkflowTransitionMessage.xml Fri Feb 8 16:37:43 2008
@@ -1,0 +1,138 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_bind_names</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_asgns</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>name_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_owner</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_text</string> </key>
+ <value> <string encoding="cdata"><![CDATA[
+
+<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
+ xmlns:metal="http://xml.zope.org/namespaces/metal">\n
+<head>\n
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
+<title>Test Pass Workflow Transition</title>\n
+</head>\n
+<body>\n
+<table cellpadding="1" cellspacing="1" border="1">\n
+<thead>\n
+<tr><td rowspan="1" colspan="3">Test Pass Workflow Transition</td></tr>\n
+</thead><tbody>\n
+<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Created Successfully.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>assertTextPresent</td>\n
+ <td>Done.</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>open</td>\n
+ <td>${base_url}/foo_module/0/view</td>\n
+ <td></td>\n
+</tr>\n
+<tr>\n
+ <td>selectAndWait</td>\n
+ <td>select_action</td>\n
+ <td>Display Status Workflow Action</td>\n
+</tr>\n
+<tr>\n
+ <td>assertValue</td>\n
+ <td>id=dialog_submit_button</td>\n
+ <td>Display Status Workflow Action</td>\n
+</tr>\n
+<tr>\n
+ <td>clickAndWait</td>\n
+ <td>id=dialog_submit_button</td>\n
+ <td/>\n
+</tr>\n
+<tr>\n
+ <td>assertPortalStatusMessage</td>\n
+ <td>Status Message Changed.</td>\n
+ <td/>\n
+</tr>\n
+\n
+</tbody></table>\n
+</body>\n
+</html>\n
+
+
+]]></string> </value>
+ </item>
+ <item>
+ <key> <string>content_type</string> </key>
+ <value> <string>text/html</string> </value>
+ </item>
+ <item>
+ <key> <string>expand</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>testChangeWorkflowTransitionMessage</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/scripts/changeStatusMessage.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/scripts/changeStatusMessage.xml?rev=19186&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/scripts/changeStatusMessage.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/scripts/changeStatusMessage.xml Fri Feb 8 16:37:43 2008
@@ -1,0 +1,152 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Python_magic</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </value>
+ </item>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_bind_names</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>_asgns</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>name_container</string> </key>
+ <value> <string>container</string> </value>
+ </item>
+ <item>
+ <key> <string>name_context</string> </key>
+ <value> <string>context</string> </value>
+ </item>
+ <item>
+ <key> <string>name_m_self</string> </key>
+ <value> <string>script</string> </value>
+ </item>
+ <item>
+ <key> <string>name_subpath</string> </key>
+ <value> <string>traverse_subpath</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_body</string> </key>
+ <value> <string>document = state_change[\'object\']\n
+request = document.REQUEST\n
+\n
+from Products.ERP5Type.Message import Message\n
+N_ = lambda msg, **kwd: Message(\'erp5_ui\', msg, **kwd)\n
+\n
+request.set(\'portal_status_message\', N_(\'Status Message Changed.\'))\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_filepath</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>state_change</string> </value>
+ </item>
+ <item>
+ <key> <string>errors</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_code</string> </key>
+ <value>
+ <object>
+ <klass>
+ <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+ </klass>
+ <tuple/>
+ <state>
+ <dictionary>
+ <item>
+ <key> <string>co_argcount</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>state_change</string>
+ <string>_getitem_</string>
+ <string>document</string>
+ <string>_getattr_</string>
+ <string>request</string>
+ <string>Products.ERP5Type.Message</string>
+ <string>Message</string>
+ <string>N_</string>
+ </tuple>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>func_defaults</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>changeStatusMessage</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml?rev=19186&r1=19185&r2=19186&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml (original)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/states/draft.xml Fri Feb 8 16:37:43 2008
@@ -33,6 +33,8 @@
<tuple>
<string>delete</string>
<string>delete_action</string>
+ <string>display_status</string>
+ <string>display_status_action</string>
<string>dummy_action</string>
<string>dummy_failing_action</string>
<string>validate</string>
Added: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status.xml?rev=19186&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status.xml Fri Feb 8 16:37:43 2008
@@ -1,0 +1,67 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>actbox_category</string> </key>
+ <value> <string>workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_url</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value> <string>changeStatusMessage</string> </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>display_status</string> </value>
+ </item>
+ <item>
+ <key> <string>new_state_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>trigger_type</string> </key>
+ <value> <int>2</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status_action.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status_action.xml?rev=19186&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status_action.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/WorkflowTemplateItem/portal_workflow/foo_workflow/transitions/display_status_action.xml Fri Feb 8 16:37:43 2008
@@ -1,0 +1,67 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>actbox_category</string> </key>
+ <value> <string>workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_name</string> </key>
+ <value> <string>Display Status Workflow Action</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_url</string> </key>
+ <value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=display_status_action</string> </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value> <string>display_status</string> </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>display_status_action</string> </value>
+ </item>
+ <item>
+ <key> <string>new_state_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>trigger_type</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=19186&r1=19185&r2=19186&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision Fri Feb 8 16:37:43 2008
@@ -1,1 +1,1 @@
-322
+323
More information about the Erp5-report
mailing list