[Erp5-report] r20945 - /erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 14 07:27:37 CEST 2008
Author: vincent
Date: Wed May 14 07:27:36 2008
New Revision: 20945
URL: http://svn.erp5.org?rev=20945&view=rev
Log:
Make it possible to specify a different workflow script id.
Modified:
erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
Modified: erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py?rev=20945&r1=20944&r2=20945&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py (original)
+++ erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py Wed May 14 07:27:36 2008
@@ -229,16 +229,16 @@
"""
return self.doMenu(value, 'select_action', 'Base_doAction:method')
- def doWorkflowAction(self, value):
+ def doWorkflowAction(self, value, script_id='BaseWorkflow_viewWorkflowActionDialog'):
"""
Pass the given workflow action.
The transition dialog is passed.
The returned time takes juste the actual workflow transition in account, not the transition dialog display time.
"""
try:
- self.doMenu('BaseWorkflow_viewWorkflowActionDialog?workflow_action=%s' % (value, ), 'select_action', 'Base_doAction:method')
+ self.doMenu('%s?workflow_action=%s' % (script_id, value), 'select_action', 'Base_doAction:method')
except ItemNotFoundError:
- self.doMenu('BaseWorkflow_viewWorkflowActionDialog?field_my_workflow_action=%s' % (value, ), 'select_action', 'Base_doAction:method')
+ self.doMenu('%s?field_my_workflow_action=%s' % (script_id, value), 'select_action', 'Base_doAction:method')
return self.doAction(submit_name='Base_callDialogMethod:method')
def doJumpMenu(self, value):
More information about the Erp5-report
mailing list