Commit graph

126 commits

Author SHA1 Message Date
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
Romain Bignon
9ff2f70284 support deinit 2010-08-03 20:16:57 +02:00
Romain Bignon
cd56abe724 Merge branch 'fillobj'
Conflicts:
	weboob/backends/youjizz/backend.py
	weboob/backends/youporn/backend.py
	weboob/tools/application/console.py
2010-07-20 20:39:48 +02:00
Romain Bignon
1398c0f7d1 improvement of the fillobj 2010-07-20 20:37:37 +02:00
Romain Bignon
0435cd7411 comments 2010-07-12 23:53:37 +02:00
Christophe Benz
ce8c424f12 do not check for backend names, it can be instance names 2010-07-12 23:36:08 +02:00
Christophe Benz
5c2ab81e16 change vocabulary
s/module/backend
s/backend/configured_backend
s/frontend/application
2010-07-12 03:07:10 +02:00
Christophe Benz
742b0ad62b remove unnecessary comments 2010-07-11 02:52:12 +02:00
Christophe Benz
3a9c45c387 display full path for file in log format 2010-07-10 21:55:09 +02:00
Christophe Benz
de3b3880c1 test if requested backends before iterating 2010-07-10 03:28:35 +02:00
Christophe Benz
11475c8325 inform user about backend not found 2010-07-10 02:29:21 +02:00
Christophe Benz
4caa9abd29 rename engine to ouiboube 2010-07-07 18:08:35 +02:00
Christophe Benz
1955d1be59 move core files to weboob.core 2010-07-07 17:20:16 +02:00
Romain Bignon
be9f3f60e4 storage is also used by frontends 2010-07-03 14:51:49 +02:00
Christophe Benz
470f2a9fe2 use real comments for licence header 2010-06-22 16:27:33 +02:00