Commit graph

549 commits

Author SHA1 Message Date
Romain Bignon
0767ee40aa call 'on_loaded' only if logged 2011-07-24 17:46:56 +02:00
Romain Bignon
ddda7f88e4 sort backends by name when querying user to select one 2011-07-22 21:02:21 +02:00
Romain Bignon
abb9b3dfc3 enable http and mechanize debugs before calling home() 2011-07-16 11:49:14 +02:00
Romain Bignon
90f9608ffa ask() writes on output with the right encoding 2011-07-14 16:25:44 +02:00
Romain Bignon
e731f42cb9 new method ConsoleApplication.acquire_input() to read stdin friendly 2011-07-11 22:18:25 +02:00
Romain Bignon
9e3b1a049e get_object() method requires an unique backend ID 2011-07-11 22:17:40 +02:00
Romain Bignon
2a6ad71826 remove unused variable 2011-07-05 16:25:49 +02:00
Romain Bignon
aaa5b215ad python-keyring isn't a hard dependency 2011-07-04 14:52:13 +02:00
Romain Bignon
ba6f31dac8 move remove_html_tags function into weboob.tools.misc 2011-07-03 10:52:33 +02:00
Romain Bignon
cb90621100 retry location after login 2011-07-02 13:22:25 +02:00
Romain Bignon
621fc4ba75 fix error when there isn't any backend given 2011-07-01 13:46:02 +02:00
Romain Bignon
2804867a97 print an error if a specified backend is not enabled or existant 2011-06-30 15:24:51 +02:00
Romain Bignon
f99c6b31a8 reorganize players order 2011-06-30 15:21:30 +02:00
Romain Bignon
090fb38feb ability to enter the backend name 2011-06-26 23:33:34 +02:00
Romain Bignon
473d45f5f1 bank account IDs are also stored in keyring (closes #565) 2011-05-21 10:35:18 +02:00
Romain Bignon
a255916fa3 support new config management and login callback in applications 2011-05-21 10:28:27 +02:00
Romain Bignon
cb1372b99f new class BackendConfig to manage backend configs 2011-05-21 10:26:57 +02:00
Romain Bignon
67b795c585 add ValueBackendPassword which supports keyrings 2011-05-21 10:26:01 +02:00
Romain Bignon
d600e763b3 do not run player in background (closes #664) 2011-05-18 11:44:20 +02:00
Romain Bignon
d15e2ab65e fix recursive loop 2011-05-16 10:36:58 +02:00
Romain Bignon
908e32a713 fix command 'inspect' to don't crash if there isn't any browser 2011-05-12 15:02:40 +02:00
Romain Bignon
c6443b9725 fix when lefigaro's feed is wrong 2011-05-11 16:50:07 +02:00
Romain Bignon
5f3c429e83 oops, fix call to fill_thread 2011-05-11 16:21:07 +02:00
Romain Bignon
5f6744cfe7 support fill of threads 2011-05-11 11:57:26 +02:00
Romain Bignon
72850a0a79 move GenericBackend and GenericArticle modules into weboob.tools.capabilities.messages 2011-05-11 11:54:33 +02:00
Romain Bignon
c9ddbec134 fix for python2.5 2011-05-10 16:26:26 +02:00
Romain Bignon
1dafee2b47 move repl code from ConsoleApplication to ReplApplication 2011-05-08 18:13:05 +02:00
Romain Bignon
2825ff643b pylint fixes 2011-05-08 17:51:06 +02:00
Romain Bignon
daa524d75d 'ls' and 'cd' are now weboob commands 2011-05-08 17:25:32 +02:00
Romain Bignon
c587ce65b0 weboob-config can't be run in interactive mode anymore 2011-05-08 14:38:54 +02:00
Romain Bignon
cb1478f455 check exception attribute (closes #581) 2011-05-08 13:56:00 +02:00
Laurent Bachelier
05a6bb79e4 Also log redirects when saving responses and debugging (refs #398)
set_debug_responses is not needed as we already save the responses in a
better way.
2011-05-08 13:55:41 +02:00
Romain Bignon
dc15310118 don't crash if unit is not found 2011-05-08 11:37:48 +02:00
Romain Bignon
c159a5d43e command 'ls' always refetch objects 2011-05-07 14:23:47 +02:00
Laurent Bachelier
3154d7f79d Do not prompt to add backends if not in an interactive session 2011-05-06 00:57:03 +02:00
Laurent Bachelier
56fe4448d3 Switch back to running tests for one backend only
This seems to cause unpredictable failures with pastebin (at least).
Tests will have the backends attribute if they really want to tests all
backends at once. For now, one backend is chosen for each run (and since
tests are ran often, it will cover all backends eventually.) The backend
instance name is displayed to ease the debugging.
2011-05-04 23:18:29 +02:00
Laurent Bachelier
8075d538f0 Better messages and return codes in applications
Use stderr and return codes >0 when it makes sense.
Loose return code conventions:
* 1 for generic errors
* 2 for user input errors
* 3 for remote errors (not found, etc.)
* 4 for not implemented
2011-05-04 00:44:43 +02:00
Romain Bignon
f603c44d6c fix iter_caps() to not return only immediate base cap classes 2011-05-03 16:11:14 +02:00
Romain Bignon
cb53bb6514 thanks pyflakes 2011-05-03 13:45:12 +02:00
Roger Philibert
432db07599 fix rate limiting 2011-05-03 02:52:54 +02:00
Noe Rubinstein
afe5db74b4 Put Thumbnail in a tools.capabilities 2011-05-03 02:52:38 +02:00
Roger Philibert
c74362edb7 Improve EHentai backend 2011-05-03 02:22:49 +02:00
Laurent Bachelier
aa939ca2bd Support testing with multiple backend instances
This is useful for testing backends with different configurations
(different sites, being anonymous or not, etc.)
The previous behavior was to chose a random backend instance.
2011-05-02 02:05:14 +02:00
Laurent Bachelier
740e7f12d2 pastebin backend: Support login
Also add an option to Browser to avoid making useless requests.
2011-04-30 22:28:03 +02:00
Laurent Bachelier
a9220c96af Add tools.capabilities.paste tools for building Paste Backends
It will provide useful functions but as it imposes on the structure of
the backends, it will not be put straight into the Paste capability.
2011-04-29 23:27:10 +02:00
Romain Bignon
fa37ef38e3 fix to remove fucking hack from feedparser >= 5.0 (closes #649) 2011-04-24 16:58:20 +02:00
Laurent Bachelier
5ac2de43d7 Try to import Python's OrderedDict
There is an OrderedDict in Python 2.7+.
The try order is now as follows:
* OrderedDict from Python's collections module
* OrderedDict from the jsonencode module (dependency)
* OrderedDict from the ordereddict module (pypi package)
* our own OrderedDict
2011-04-23 23:55:12 +02:00
Romain Bignon
923c2ffc84 remove dead code 2011-04-23 09:04:41 +02:00
Laurent Bachelier
2c6d5d4e70 Fix previous commit on domain checking of id2url
* the condition on empty self.DOMAIN didn't work
* it introduced a regression as subdomains were accepted by the old code
2011-04-22 10:37:30 +02:00
Laurent Bachelier
7bf794b7e5 Add missing fillobj() call on get_object
fillobj was only called when getting previously fetched objects in
interactive mode.
This probably wasn't detected because most get_* backend functions
usually fill a lot of fields by themselves.
2011-04-21 22:59:30 +02:00