Commit graph

5,896 commits

Author SHA1 Message Date
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
990bb056eb Replace -D with -dd 2014-10-02 10:56:11 +02:00
Florent
cba66416b2 Expand html/xml in debug mode 2014-10-02 10:56:11 +02:00
Florent
bdd2be4d4b introduce an incremental id to help the debug reading 2014-10-02 10:56:11 +02:00
Florent
ef9e45a544 Print obj.attr first 2014-10-02 10:56:11 +02:00
Florent
20b5a534c5 Display results in debug only once 2014-10-02 10:56:11 +02:00
Florent
5a4920748d Get objects id and attribut name in debug 2014-10-02 10:56:11 +02:00
Florent
dbc33de235 Use %r and not %s 2014-10-02 10:56:11 +02:00
Florent
a3d8217fb7 Add the type in formatting 2014-10-02 10:56:11 +02:00
Florent
d89ef22772 Make some attribute private 2014-10-02 10:56:11 +02:00
Florent
b84b25db66 Fix formatting and add some black magic to @debug 2014-10-02 10:56:11 +02:00
Florent
5daba0f8ab Add debug on some standards filters 2014-10-02 10:56:11 +02:00
Florent
23aec4046c Add -D option to base applications 2014-10-02 10:56:11 +02:00
Florent
1b0096e6e3 Add a DebugFilter class to weboob/tools/log.py
The browser2 filter debugging is an extra level of "Debug". Since python
logging does not support adding severity levels, we use the Filter class
to remove the lines by default.

Sadly, we cannot pass variable to filters (logging system does not use
the instance passed with addFilter method), so we use to write a filter
for each use case (today: only one...)
2014-10-02 10:56:11 +02:00
Florent
d014312a3d Add the debug decorator to dresdenwetter filter 2014-10-02 10:56:11 +02:00
Florent
b337d2f655 Add debug pre-processor 2014-10-02 10:56:11 +02:00
Florent
dd5213b761 Add __str__ to _Filters 2014-10-02 10:56:11 +02:00
Florent Fourcot
8850e8c35b Update authors 2014-10-01 19:15:21 +02:00
Camille Dehecq
3bfa13e64e Add graph_total 2014-10-01 19:13:47 +02:00
Camille Dehecq
6450c91647 Add category option to weboob-generic 2014-10-01 19:12:16 +02:00
Bezleputh
11e124c860 [leboncoin] properly fill object 2014-10-01 17:43:21 +02:00
Bezleputh
38bc6819df [flatboob] fix bug type_of_good does not exist anymore 2014-10-01 17:43:21 +02:00
Bezleputh
017c6f7e54 handle datetime in condition argument 2014-10-01 17:43:21 +02:00
Bezleputh
88ec57d2a1 [leboncoin] fix test 2014-10-01 17:43:21 +02:00
Laurent Bachelier
981af5e2a9 pastebin: Fix crash on spam page 2014-10-01 16:23:05 +02:00
Laurent Bachelier
deb1249e65 browser2: Fix error message text 2014-10-01 16:23:04 +02:00
Laurent Bachelier
ada65e8143 tests: Allow changing modules path and adding to PYTHONPATH
This way run_tests.sh follows what local_run.sh can do.
2014-10-01 16:23:04 +02:00
Romain Bignon
8137bc2d66 do not lock browser2 anymore (closes #1635) 2014-10-01 16:04:17 +02:00
Florent
54a1bc4809 Remove * imports in filters 2014-09-29 22:31:54 +02:00
Florent
fbd8cf1a64 Move CleanHTML to html filters 2014-09-29 22:31:54 +02:00
Bezleputh
9275de4bdb [agendadulibre] fix bug on day number during pagination 2014-09-29 11:40:08 +02:00
Florent
aab2e341f9 Add a @ckeck_bourse decorator for a clean redirect 2014-09-29 10:14:51 +02:00
Florent
cee106a0e5 Add loggedPage on bourse.ingdirect.fr 2014-09-29 10:14:29 +02:00
Romain Bignon
35f03a00a1 fix crash on coming operations 2014-09-29 00:34:54 +02:00
Bezleputh
9a7d5edb79 [flatboob] add load command 2014-09-27 12:13:17 +02:00
Bezleputh
fd5c565b3b [leboncoin] allow to choose between owner adverts and agency adverts 2014-09-26 22:48:44 +02:00
Bezleputh
695d969682 [leboncoin] handle query.type 2014-09-26 17:33:26 +02:00
Bezleputh
258eb9a56c [leboncoin] fix BROWSER naming 2014-09-26 15:42:38 +02:00
Florent
0b58c9a26b Rename filenames in boilerplate 2014-09-26 11:09:35 +02:00
Florent
0b08f614a1 Adapt leboncoin to new API 2014-09-26 10:36:34 +02:00
Florent
0f4f1222b7 s/backend/module in docstrings 2014-09-26 10:18:12 +02:00
Florent
0088013ae1 Rename BaseBrowser to Browser 2014-09-26 10:18:12 +02:00
Florent
444d36eee8 Rename BasePage to Page 2014-09-26 10:18:12 +02:00
Florent
44dffce7b2 Rename CapBase to Capability 2014-09-26 10:18:12 +02:00
Florent
a64c9f2edb Rename BaseApplication to Application 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
5c71be36f5 Rename GenericBackend.py to GenericModule.py 2014-09-26 10:18:12 +02:00
Florent
f3aeddffbc Rename backend.py to module.py 2014-09-26 10:18:12 +02:00
Florent
ac5b410b0d Update weboob_lint 2014-09-26 10:18:12 +02:00