[Erp5-report] r8429 - /erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jul 13 10:32:19 CEST 2006


Author: vincent
Date: Thu Jul 13 10:32:15 2006
New Revision: 8429

URL: http://svn.erp5.org?rev=8429&view=rev
Log:
Add support for logout.

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=8429&r1=8428&r2=8429&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py (original)
+++ erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py Thu Jul 13 10:32:15 2006
@@ -95,6 +95,12 @@
     if 'Logged In as' not in self.last_page.get_data(): # XXX: Could use information sent back as headers - but would bind us to a specific authentication scheme.
       raise LoginError
     return t
+
+  def doLogout(self):
+    """
+      Logout.
+    """
+    return self.doMenu('logout', 'favorite_select', 'Base_doFavorite:method')
 
   def doMenu(self, value, menu_name, submit_name):
     """




More information about the Erp5-report mailing list