Commit graph

90 commits

Author SHA1 Message Date
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
Laurent Bachelier
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00
Romain Bignon
b7b7d31771 remove unused imports 2013-01-30 11:36:47 +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
d9ceecdf8a Add --insecure to the proper place (no group) 2013-01-25 15:48:55 +01:00
Florent
528cc826ce Allow to exclude some backends
closes #617
2013-01-10 19:05:52 +01:00
Laurent Bachelier
8bc80db331 Add global "insecure" option to skip SSL validation
closes #930
2013-01-10 09:38:17 +01:00
Laurent Bachelier
2d463e060e Hide ConversionWarning by default
refs #839
2012-04-10 08:01:27 +02:00
Romain Bignon
fc849995f4 rewrite of the formatters system 2012-04-03 22:40:38 +02:00
Romain Bignon
9162f1c09e convert arguments to unicode even if no locales are set 2012-02-17 14:43:09 +01:00
Romain Bignon
5bd0aeed41 setup a default logging handler at app startup, before parsing args (-vdq) 2012-01-27 17:34:08 +01:00
Romain Bignon
14a7a1d362 support repositories to manage backends (closes #747) 2012-01-17 17:00:05 +01:00
Romain Bignon
5337e53b49 split BaseBrowser into new class StandardBrowser which is usable without inheriting it 2011-09-23 09:59:12 +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
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
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
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Romain Bignon
2ba3f46f3b split ReplApplication to create ConsoleApplication 2011-03-05 21:55:20 +01:00
Christophe Benz
0a801006dc enhance save_response option 2010-11-22 01:07:28 +01:00
Romain Bignon
7c8465d633 'No backend loaded' message is info instead of warning 2010-11-19 13:50:30 +01:00
Romain Bignon
5b33e4047e print call errors to stderr 2010-11-15 23:21:28 +01:00
Romain Bignon
2d4587c147 handle common exceptions even during application loading 2010-11-13 01:48:20 +01:00
Romain Bignon
3fb2bb6575 factorization of CallErrors exception handlers 2010-11-11 01:43:58 +01:00
Romain Bignon
ebe29a061f new method 'delete' in storage and config 2010-11-11 01:11:00 +01:00
Romain Bignon
34be0d69d2 always display the 0 line 2010-10-31 14:50:00 +01:00
Romain Bignon
a1a58c7c32 add --logging-file parameter, and color stdout lines depending of level 2010-10-30 16:09:02 +02:00
Romain Bignon
4e4ca43949 fix logging, and add --logging-file parameter 2010-10-30 13:49:21 +02:00
Romain Bignon
8fc7860150 $full and $direct selectors work 2010-10-30 11:24:49 +02:00
Romain Bignon
711f2c73a3 print call errors 2010-10-28 00:05:05 +02:00
Christophe Benz
5b014361af forget \n 2010-10-12 19:43:48 +02:00
Romain Bignon
ad588d5d1d rename -S(--save-responses) to -a 2010-10-01 17:14:36 +02:00
Laurent Bachelier
da55da0d9d Optional global argument to save responses
By adding -S or --save-responses to an application's arguments, every
response will be saved in /tmp/weboob. This is best used with the
-d/--debug option.
It might be interesting to add the headers to the saved response.
2010-09-30 23:28:33 +02:00
Romain Bignon
0ce8b12c32 stop scheduler when an application exits 2010-09-28 11:29:32 +02:00
Laurent Bachelier
79ab361d54 Fix startup error 2010-09-26 20:19:30 +02:00
Romain Bignon
04037e7893 repl: interactive add of backends when no one is loaded at startup 2010-09-25 00:57:54 -04:00
Romain Bignon
aee0e49cc8 -b is handled by BaseApplication 2010-09-24 21:56:49 -04:00
Romain Bignon
0eba4302a5 override complete() to change the behaviour of Cmd completion 2010-09-24 13:56:24 -04:00
Romain Bignon
37a53b783a port every console applications to ReplApplication 2010-09-24 12:58:27 -04:00
Christophe Benz
9e2345eeb9 implement select command 2010-09-21 13:10:52 -04:00
Christophe Benz
ab4a427586 new ReplApplication base class 2010-09-21 13:10:48 -04:00
Romain Bignon
9f5c9aeebc renamed BackendsLoader to ModulesLoader 2010-08-24 11:03:39 +02:00
Romain Bignon
9581fa0b19 all loaded backends are now configured (refs #368) 2010-08-19 22:15:38 +02:00
Romain Bignon
404d7290ba a lot of pyflakes and pylint fixes 2010-08-13 22:23:10 +02:00
Romain Bignon
52cb3ea97c fix 2010-08-13 10:43:22 +02:00
Romain Bignon
3c89ee1f93 fix complete of objects 2010-08-13 09:20:26 +02:00
Romain Bignon
d6f232198a fix when the function isn't a string 2010-08-12 18:17:19 +02:00
Christophe Benz
87f34c1961 set not loaded fields to NotAvailable 2010-08-12 18:17:19 +02:00
Christophe Benz
d81f5dac7a ObjectNotSupported is now an assertion 2010-08-12 16:45:05 +02:00
Christophe Benz
53f6571fee implement max_results option and infinite search for youtube 2010-08-12 16:04:53 +02:00
Christophe Benz
3fcbcc3964 -s '*' fills object 2010-08-11 16:42:07 +02:00