[Erp5-report] r15535 - /erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Aug 7 17:27:34 CEST 2007
Author: kazuhiko
Date: Tue Aug 7 17:27:34 2007
New Revision: 15535
URL: http://svn.erp5.org?rev=15535&view=rev
Log:
the parameter key of workflow action can be field_my_workflow_action.
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=15535&r1=15534&r2=15535&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py (original)
+++ erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py Tue Aug 7 17:27:34 2007
@@ -209,7 +209,10 @@
The transition dialog is passed.
The returned time takes juste the actual workflow transition in account, not the transition dialog display time.
"""
- self.doMenu('BaseWorkflow_viewWorkflowActionDialog?workflow_action=%s' % (value, ), 'select_action', 'Base_doAction:method')
+ try:
+ self.doMenu('BaseWorkflow_viewWorkflowActionDialog?workflow_action=%s' % (value, ), 'select_action', 'Base_doAction:method')
+ except ItemNotFoundError:
+ self.doMenu('BaseWorkflow_viewWorkflowActionDialog?field_my_workflow_action=%s' % (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