[weboob] [PATCH 1/1] Add the nologin option to "submit"

Florent weboob at flo.fourcot.fr
Tue Nov 29 16:25:13 CET 2011


---
 weboob/tools/browser/browser.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/weboob/tools/browser/browser.py b/weboob/tools/browser/browser.py
index 2ae89dc..879d1ff 100644
--- a/weboob/tools/browser/browser.py
+++ b/weboob/tools/browser/browser.py
@@ -438,8 +438,9 @@ class BaseBrowser(StandardBrowser):
         """
         Submit the selected form.
         """
+        nologin = kwargs.pop('nologin', False)
         try:
-            self._change_location(mechanize.Browser.submit(self, *args, **kwargs))
+            self._change_location(mechanize.Browser.submit(self, *args, **kwargs), no_login=nologin)
         except (mechanize.response_seek_wrapper, urllib2.HTTPError, urllib2.URLError, BadStatusLine), e:
             self.page = None
             raise self.get_exception(e)(e)
-- 
1.7.2.5



More information about the weboob mailing list