Commit graph

69 commits

Author SHA1 Message Date
Romain Bignon
e6a80af479 call browser.deinit() if defined 2015-03-24 23:57:05 +01:00
Romain Bignon
cedfb5670e save and load state of browser into storage 2015-02-21 17:49:20 +01:00
Laurent Bachelier
7aeb3e942e pep8: Fix indentation is not a multiple of four
autopep8 -a -r -i --select E111 .

Manual check.
2014-10-11 01:41:00 +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
Florent
4f33f914ad Allow to load a module with config=None 2014-10-09 13:24:52 +02:00
Florent
0f4f1222b7 s/backend/module in docstrings 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
9370b2fae7 s/Backend/Module 2014-09-26 10:18:11 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +02:00
Florent
e5f11a15eb s/IBaseCap/CapBase/ (refs #1424) 2014-07-09 12:59:31 +02:00
Romain Bignon
51958135cb rename CapBaseObject to BaseObject (refs #1424) 2014-07-05 17:26:05 +02:00
Romain Bignon
e4d4ed206f correctly handle _proxy_ssl backend's private config 2014-05-18 18:35:12 +02:00
Romain Bignon
42028c390f add a 'settings' attribute on loggers to store user values like 'save_responses', 'responses_dirname', 'ssl_insecure', etc. 2014-03-25 22:58:35 +01:00
Romain Bignon
8292eadaee remove useless debug message, imports and functions 2014-03-13 21:27:43 +01:00
Johann Broudin
0f1726d01c add ssl proxy support to browser and browser2 and add the option _proxy_ssl 2014-03-13 20:20:02 +01:00
Romain Bignon
0a0865542a temp hack to support new browser 2014-03-10 13:11:07 +01:00
Florent
20917a1efe Better formatting of version number in debug
Thanks to Romain
2014-01-20 14:44:02 +01:00
Florent
8ed0c7f87c Add version information in Debug 2014-01-20 11:26:11 +01:00
Laurent Bachelier
a6ad7e83ff Use newer form of catching exceptions
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +02:00
Romain Bignon
59695eafc9 fix crash if backend name contains unicode chars 2013-07-23 22:11:23 +02:00
Laurent Bachelier
4b38dcbbed Fix doctests for pyflakes
I'm pretty sure those doctests will not work if ran, but they serve
as useful documentation.
2013-07-21 00:40:49 +02:00
Laurent Bachelier
edf72dfb33 Do not try to fill None
Use case: videoob play on an unknown URL.
The get_object(... , ['url']) would throw a FieldNotFound, when the
right error should be video not found.
2013-03-30 01:04:37 +01:00
Romain Bignon
8550c17cf7 do not cry if an object in not support to be filled by a backend 2013-01-30 11:34:28 +01:00
Laurent Bachelier
3a66728392 Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Romain Bignon
6f46c41743 do not fail during fullobj() if the object is not supported by backend 2012-04-28 16:38:55 +02:00
Romain Bignon
057c23f10b can set a parameter '_debug_dir' to backend 2012-04-26 14:59:10 +02:00
Romain Bignon
7082571acf update code documentation 2012-04-01 17:41:20 +02:00
Romain Bignon
c6a141595c change way to describe fields of CapBaseObject, and lot of documentation 2012-03-26 14:35:54 +02:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Laurent Bachelier
03f65bb121 Try to separate saved responses by backend
closes #661
2012-02-01 23:04:04 +01:00
Romain Bignon
14a7a1d362 support repositories to manage backends (closes #747) 2012-01-17 17:00:05 +01:00
Romain Bignon
cb1372b99f new class BackendConfig to manage backend configs 2011-05-21 10:26:57 +02:00
Romain Bignon
2825ff643b pylint fixes 2011-05-08 17:51:06 +02:00
Romain Bignon
f603c44d6c fix iter_caps() to not return only immediate base cap classes 2011-05-03 16:11:14 +02:00
Laurent Bachelier
39bfdade27 Use the lowercase http_proxy environment variable
The 'correct' way is to have it lowercase, though there is a lot of
confusion around it.
2011-04-09 15:40:23 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Christophe Benz
3dd50f363d remove unnecessary brackets 2010-12-08 18:10:42 +01:00
Romain Bignon
bbd7b66413 don't need to logout from dlfp if the browser hasn't been used 2010-11-18 12:24:49 +01:00
Romain Bignon
f4e2588842 use backend instance name for logger 2010-11-14 22:12:30 +01:00
Romain Bignon
ebe29a061f new method 'delete' in storage and config 2010-11-11 01:11:00 +01:00
Romain Bignon
7200618a93 fix bug with logger in BaseBackend.ICON class property 2010-11-04 21:17:18 +01:00
Romain Bignon
84b4003bf4 use several loggers for parts of weboob 2010-10-30 16:09:33 +02:00
Romain Bignon
8fc7860150 $full and $direct selectors work 2010-10-30 11:24:49 +02:00
Romain Bignon
2d2a942494 use Value* classes instead of ConfigField 2010-10-26 21:02:42 +02:00
Christophe Benz
9e2345eeb9 implement select command 2010-09-21 13:10:52 -04:00
Romain Bignon
3102e79e51 fix check of not loaded data 2010-08-30 18:19:50 +02:00
Romain Bignon
089441433d fillobj can take a string 2010-08-30 16:59:52 +02:00
Romain Bignon
9f5c9aeebc renamed BackendsLoader to ModulesLoader 2010-08-24 11:03:39 +02:00
Christophe Benz
8afff42465 compare instance to basestring instead of (str, unicode) 2010-08-17 19:33:06 +02:00