Commit graph

224 commits

Author SHA1 Message Date
Romain Bignon
47232308a9 prompt user to accept an untrusted keyring (closes #771) 2015-01-16 12:21:51 +01:00
Bezleputh
c3b5dbc316 [windows] fix probleme using NamedTemporaryFile on windows 2014-12-05 00:05:33 +01:00
Bezleputh
cdf3d7b7b7 [windows] well detect gpgv.exe location 2014-11-26 08:41:37 +01:00
Laurent Bachelier
de22d60f72 core: Log full backtrace on module build error 2014-11-22 16:35:55 +01:00
Romain Bignon
4314aa7d69 repositories update: display a message when all modules are up-to-date. 2014-11-05 22:08:54 +01:00
Florent
feb1405813 bump to 1.1 2014-10-17 14:10:38 +02:00
Romain Bignon
6322500d03 fix 'module' condition in WebNip.iter_backends() 2014-10-11 20:16:40 +02:00
Laurent Bachelier
f4c17cdc9d pep8: Fix E303 too many blank lines 2014-10-11 02:15:28 +02:00
Laurent Bachelier
21e8f82fd7 pep8: Use "X not in Y" instead of "not X in Y"
flake8 --select E713, semi-manual fixing
2014-10-11 01:27:24 +02:00
Laurent Bachelier
448c06d125 pep8 blank lines fixes
flake8 --select W391,E302,E301,E304

autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +02:00
Romain Bignon
b1f20b5489 fix bcall to to new behavior of do(), and fix QtDo too, and all Qt applications... 2014-10-10 17:34:48 +02:00
Florent
628c63f899 Remove backend for do() calls 2014-10-10 14:11:45 +02:00
Romain Bignon
a2a9db4f09 create PrintProgress class instead of using IProgress as default one 2014-10-08 17:10:13 +02:00
Romain Bignon
a8477c14f2 add __getitem__ on WebNip to get a loaded backend by name 2014-10-08 17:10:13 +02:00
Romain Bignon
1a8a0db712 WebNip.iter_backends takes a new optional parameter 'module' 2014-10-08 17:10:13 +02:00
Laurent Bachelier
7be9a6468b logging: Create a new level DEBUG_FILTERS
This is a cleaner approach that requires less configuration
in other applications.
This also easily allows us to have another color.

Many checks were made on being exactly at the DEBUG level, they were
fixed to also check on being below DEBUG (i.e. DEBUG_FILTERS).
2014-10-07 17:11:09 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Florent
9949bbf919 Move exceptions to weboob.core.exceptions 2014-10-02 11:04:14 +02:00
Florent
a019819f9d Move browser2 from weboob/tools/b2 to weboob/browser2 2014-10-02 11:01:34 +02:00
Florent
0088013ae1 Rename BaseBrowser to Browser 2014-09-26 10:18:12 +02:00
Florent
44dffce7b2 Rename CapBase to Capability 2014-09-26 10:18:12 +02:00
Florent
5a1d83b567 Rename BaseModule to Module and Module to LoadedModule 2014-09-26 10:18:12 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +02:00
Laurent Bachelier
8bf0cba300 core: Use the new vocabulary 2014-09-21 12:13:23 +02:00
Laurent Bachelier
4d63955cb5 Put back wrongly removed __all__ 2014-09-10 14:05:08 +02:00
Laurent Bachelier
3da02fde24 Remove useless __all__ in modules
They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.

The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
2014-09-09 19:00:02 +02:00
François Revol
ecd265de4f Replace usage of os.mknod() by os.open(O_CREAT)
Haiku doesn't have mknod().
Actually it does now, but it might take ages for python
to support it as os.mknod().
2014-09-05 08:32:58 +02:00
Laurent Bachelier
a4162e46e6 repositories: Catch the proper exception for missing icon 2014-09-04 23:37:16 +02:00
Florent
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Florent
e5f11a15eb s/IBaseCap/CapBase/ (refs #1424) 2014-07-09 12:59:31 +02:00
Florent
0e3e32adb1 Do not import exceptions of requests / load browser if needed
The import process of requests is very expensive: it imports all urllib,
and a lot of stuff. It is a problem on slow hardware, for applications
not running browser2 (example: weboob-config update).

This patch has two mains parts:
 * introduces load_browser to load a browser only if needed (a lot of repository
   processing does not need a browser)
 * Do not import exceptions of requests, but use Weboob internals one

Before: 6455 open/190 modules imported
After: 3997 open/112 modules
2014-07-09 10:54:33 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Romain Bignon
51958135cb rename CapBaseObject to BaseObject (refs #1424) 2014-07-05 17:26:05 +02:00
Romain Bignon
4529735935 ability to use weboob.function as alias to weboob.do('function') (closes #1425) 2014-07-05 17:21:10 +02:00
Romain Bignon
09acbfde5e use ConfigParser in priority with python2 2014-06-10 17:02:15 +02:00
Laurent Bachelier
fb011f2be6 repositories: Fix HTTP error handling for browser2 2014-05-20 00:02:55 +02:00
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +02:00
Romain Bignon
62b8ca70c6 sorry Olf, I've in fact broken weboob-repos 2014-05-17 15:07:56 +02:00
Romain Bignon
6fcac89dd5 first step in python3 support 2014-05-17 14:27:55 +02:00
Romain Bignon
d07f661cb0 import pkg_resources only when needed, to prevent a hard useless dependency 2014-05-06 15:14:28 +02:00
Romain Bignon
711cba9c65 fix compatibility with python2.6 (don't use ThreadPool anymore) 2014-05-01 18:35:11 +02:00
Romain Bignon
07f5500cce rewrite BackendCalls with ThreadPool and queues 2014-05-01 17:04:27 +02:00
Laurent Bachelier
a7e278a20d Add support for BASEURL instead of PROTOCOL+DOMAIN 2014-03-22 12:43:53 +01:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Romain Bignon
e2476bfb0e WebNip tries to find path to package weboob_modules 2013-08-18 20:21:57 +02:00
Romain Bignon
badab27702 add class WebNip 2013-08-18 16:30:23 +02:00
Florent
9a0f9d0fc9 Remove condition from core 2013-08-06 19:05:21 +02:00
Florent
6b0930ffc5 Move condition from BCall to Repl 2013-08-06 18:45:03 +02:00
Laurent Bachelier
23a71d847b Code style fixes, mostly whitespace 2013-08-04 20:00:19 +02:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +02:00