[Erp5-report] r8422 - /erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 12 10:23:46 CEST 2006
Author: vincent
Date: Wed Jul 12 10:23:44 2006
New Revision: 8422
URL: http://svn.erp5.org?rev=8422&view=rev
Log:
Remove useless docstring warnings.
Add dialog-related functions.
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=8422&r1=8421&r2=8422&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py (original)
+++ erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py Wed Jul 12 10:23:44 2006
@@ -177,28 +177,24 @@
def doContextCut(self):
"""
Execute 'cut'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_cut:method')
def doContextCopy(self):
"""
Execute 'copy'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_copy:method')
def doContextPaste(self):
"""
Execute 'paste'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_paste:method')
def doContextListMode(self):
"""
Go to list mode.
- Fails if 'list mode' link is not present in the context bar.
"""
raise Exception, 'not implemented.'
#return self.doAction(link_target='')
@@ -206,56 +202,48 @@
def doContextPrint(self):
"""
Execute 'paste'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_print:method')
def doContextNew(self):
"""
Execute 'new'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_create:method')
def doContextDelete(self):
"""
Execute 'delete'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_deleteObjectList:method')
def doContextFirst(self):
"""
Go to 'first'.
- Fails if it is not present in the context bar.
"""
return self.doAction(link_target='viewFirst')
def doContextPrevious(self):
"""
Go to 'previous'.
- Fails if it is not present in the context bar.
"""
return self.doAction(link_target='viewPrevious')
def doContextNext(self):
"""
Go to 'next'.
- Fails if it is not present in the context bar.
"""
return self.doAction(link_target='viewNext')
def doContextLast(self):
"""
Go to 'last'.
- Fails if it is not present in the context bar.
"""
return self.doAction(link_target='viewLast')
def doContextSearch(self):
"""
Go to 'search'.
- Fails if it is not present in the context bar.
"""
raise Exception, 'not implemented.'
#return self.doAction(link_target='')
@@ -263,21 +251,18 @@
def doContextShowAll(self):
"""
Execute 'show all'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_show:method')
def doContextFilter(self):
"""
Execute 'filter'.
- Fails if it is not present in the context bar.
"""
return self.doAction(submit_name='Folder_filter:method')
def doContextSort(self):
"""
Execute 'sort'.
- Fails if it is not present in the context bar.
"""
raise Exception, 'not implemented.'
#return self.doAction(link_target='')
@@ -285,7 +270,6 @@
def doContextExchange(self):
"""
Execute 'exchange'.
- Fails if it is not present in the context bar.
"""
raise Exception, 'not implemented.'
#return self.doAction(link_target='')
@@ -293,7 +277,6 @@
def doContextReport(self):
"""
Execute 'report'.
- Fails if it is not present in the context bar.
"""
raise Exception, 'not implemented.'
#return self.doAction(link_target='')
@@ -301,7 +284,6 @@
def doContextConfigure(self):
"""
Execute 'configure'.
- Fails if it is not present in the context bar.
"""
raise Exception, 'not implemented.'
#return self.doAction(link_target='')
@@ -316,14 +298,30 @@
def doSave(self):
"""
Execute 'save'.
- Fails if save button is not present.
"""
return self.doAction(submit_name='Base_edit:method')
+
+ def doDialogAction(self):
+ """
+ Execute the dialog action.
+ """
+ return self.doAction(submit_name='Base_callDialogMethod:method')
+
+ def doDialogCancel(self):
+ """
+ Execute the dialog cancel action.
+ """
+ return self.doAction(submit_name='Base_cancel:method')
+
+ def doDialogUpdate(self):
+ """
+ Execute the dialog update action.
+ """
+ return self.doAction(submit_name='Base_showUpdateDialog:method')
def gotoTab(self, value):
"""
Go to tab whose target form name is equal to given value.
- Fails if the tab is not present.
"""
return self.doAction(link_target=value)
More information about the Erp5-report
mailing list