[Erp5-report] r8403 - /erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 11 16:01:14 CEST 2006
Author: vincent
Date: Tue Jul 11 16:01:05 2006
New Revision: 8403
URL: http://svn.erp5.org?rev=8403&view=rev
Log:
Add support for workflow actions.
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=8403&r1=8402&r2=8403&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py (original)
+++ erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py Tue Jul 11 16:01:05 2006
@@ -149,6 +149,15 @@
Execute action (as in 'Action menu') given by value.
"""
return self.doMenu(value, 'action_select', 'Base_doAction:method')
+
+ def doWorkflowAction(self, value):
+ """
+ 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.
+ """
+ self.doMenu('BaseWorkflow_viewWorkflowActionDialog?workflow_action=%s' % (value, ), 'action_select', 'Base_doAction:method')
+ return self.doAction(submit_name='Base_callViewDialogMethod:method')
def doJumpMenu(self, value):
"""
More information about the Erp5-report
mailing list