Commit graph

106 commits

Author SHA1 Message Date
Romain Bignon
6fcac89dd5 first step in python3 support 2014-05-17 14:27:55 +02:00
Florent
b593e69e64 Do no fill obj if it is not a CapObject 2014-05-08 12:19:57 +02:00
Florent
2915a04eba Do not display warning message if -n or count is set
Someone using the count option is already aware of the limitations. The
warning is useless.
2014-05-06 17:05:06 +02:00
Romain Bignon
79566fbbf3 soometimes, a backend method can return None 2014-04-14 20:45:44 +02:00
Florent
83e0f92be7 Field obj.backend in _do_complete_obj
The obj.backend is traditionnaly filled by _store_result, in
BackendsCall. It is to late to test the result in condition.
2014-04-09 10:29:07 +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
Laurent Bachelier
f20f73a9cd Hide wrong pyflakes/flake8 error 2014-03-22 01:03:38 +01:00
Laurent Bachelier
fca0ab8733 Quick and dirty -a and -I support for Browser2 2014-03-13 22:04:20 +01:00
Romain Bignon
536bc13347 catch ^C on global bcall errors handler 2014-01-31 17:13:58 +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
Florent
af33442ba2 Catch error in condition evaluation
And return a better message to users
2014-01-06 15:02:04 +01:00
Florent
3fa2a8ba8f Fix condition in non reply-application 2013-12-22 20:03:41 +01:00
Florent
a3e6e98b4e Move condition code in BaseApplication
The count parameter is now consistent with condition parameter
close #1289
2013-12-15 16:47:42 +01:00
Laurent Bachelier
2406b26b02 Hide FormFieldConversionWarning too 2013-08-09 00:25:51 +02:00
Romain Bignon
46d9acd37e display a message when more results are available (closes #1038) 2013-07-27 23:40:24 +02: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
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