Commit graph

63 commits

Author SHA1 Message Date
Christophe Benz
560798bf7d implement mandatory fields for custom formatters 2010-11-23 14:46:32 +01:00
Romain Bignon
c83c923e3d moved ICapDating.get_status() and ICapMessagesPost.get_status() into ICapAccount.get_account_status() 2010-11-20 20:52:53 +01:00
Romain Bignon
d1596e0487 ask: if choices are too long, display a list with labels instead of onliner question 2010-11-17 20:44:33 +01:00
Romain Bignon
b6821b0567 fixes related to ModuleLoadError 2010-11-17 19:43:25 +01:00
Christophe Benz
bf5741759a enhance inspect, use browser.location then browser.open as fallback 2010-11-17 16:26:52 +01:00
Christophe Benz
f0c3e6029a introduce ModuleLoadError 2010-11-17 15:05:53 +01:00
Christophe Benz
692caf9453 add a quiet mode for load_module 2010-11-17 14:17:38 +01:00
Christophe Benz
16fe553f51 fix english error, display exception message 2010-11-17 14:17:03 +01:00
Christophe Benz
25b9a48b59 add spaces to slashes for choices 2010-11-17 12:33:26 +01:00
Romain Bignon
c35497e582 load readline history in main() instead of constructor 2010-11-15 22:02:59 +01:00
Christophe Benz
5825b9f304 do not specify white color (37 value) for bold 2010-11-15 11:59:34 +01:00
Romain Bignon
0746942e02 accept backends name with only letters and digits 2010-11-14 22:18:56 +01:00
Romain Bignon
c644aacd29 fix: use ResultsCondition in BackendsCall instead of hack in Weboob (refs #372) 2010-11-14 21:46:48 +01:00
Christophe Benz
5fc8c14b2d fix #372 conditions should not be treated by formatters 2010-11-14 15:04:20 +01:00
Romain Bignon
916fc3d98e add a path completer for weboorrents command 'getfile' 2010-11-14 14:11:10 +01:00
Christophe Benz
5d6b3d6abc add inspect command 2010-11-14 11:09:04 +01:00
Romain Bignon
fda971a7f1 oops typo in call of CallErrors handler 2010-11-12 14:24:43 +01:00
Romain Bignon
8c7da03c60 fix: when there are no args, return [] instead of [''] 2010-11-11 13:57:25 +01:00
Romain Bignon
d224effe35 fixes 2010-11-11 01:56:03 +01:00
Romain Bignon
3fb2bb6575 factorization of CallErrors exception handlers 2010-11-11 01:43:58 +01:00
Christophe Benz
b69a31e1b9 python2.5 compatibility (for maemo) 2010-11-01 16:48:17 +01:00
Romain Bignon
4670081040 minor changes 2010-11-01 10:08:18 +01:00
Romain Bignon
2b55ab7340 fix the 'logging' command 2010-10-31 00:14:53 +02:00
Romain Bignon
4e4ca43949 fix logging, and add --logging-file parameter 2010-10-30 13:49:21 +02:00
Romain Bignon
2fa00066ba unused import 2010-10-30 11:26:04 +02:00
Romain Bignon
8fc7860150 $full and $direct selectors work 2010-10-30 11:24:49 +02:00
Romain Bignon
e3458248ab new command 'backends register' (closes #294) 2010-10-30 10:55:12 +02:00
Romain Bignon
8777e6c1d3 weboob-config now supports new Value* classes instead of BackendConfig ones 2010-10-26 21:02:42 +02:00
Romain Bignon
bd44734f78 display a notice to encourage user to contribute when NotImplementedError is raised 2010-10-23 11:15:14 +02:00
Romain Bignon
41a76723b6 do not use a bold prompt (there are a several of problems) 2010-10-19 10:42:03 +02:00
Romain Bignon
89e2c29447 fix falling back to default formatter 2010-10-16 22:24:59 +02:00
Romain Bignon
86f2ede418 fix empty commands 2010-10-15 18:29:32 +02:00
Romain Bignon
24e3671f27 video_list formatter display count in interactive mode, the full ID otherwise 2010-10-15 10:12:44 +02:00
Romain Bignon
61deb66ac8 set default formatter 2010-10-15 09:23:25 +02:00
Romain Bignon
a86a6b2669 rewrite formatters management in repl
Commands can use specific default formatters, user can redefine formatters
per commands or globally.
2010-10-14 20:09:32 +02:00
Romain Bignon
fa24395efb unused import 2010-10-13 09:34:10 +02:00
Christophe Benz
bd447b3cf2 simplify code 2010-10-12 19:43:48 +02:00
Romain Bignon
0ebf8d579d add class attribute to disable REPL behaviour 2010-10-08 10:52:35 +02:00
Romain Bignon
a36aa0d56e handle errors during loading and ask users to reconfigure backend 2010-10-01 20:17:23 +02:00
Romain Bignon
217b029a6f pyflakes fixes 2010-09-30 12:40:09 +02:00
Romain Bignon
a8b6594af0 add help for logging command, and set it as a weboob command 2010-09-30 12:28:46 +02:00
Romain Bignon
37266a7945 add 'logging' command 2010-09-30 12:23:38 +02:00
Romain Bignon
c76e5f9e6a new command 'backends edit' 2010-09-30 12:07:53 +02:00
Romain Bignon
6dfbda042c correctly handle BrowserUnavailable and BrowserIncorrectPassword exceptions in repl applications (closes #302)
It asks user to reconfigure backend when BrowserIncorrectPassword is
raised.
2010-09-30 11:59:12 +02:00
Christophe Benz
3939cf1039 fix bug when keyup:keydown in history 2010-09-28 01:27:44 +02:00
Christophe Benz
1fd34fe715 avoid python side effect 2010-09-27 14:57:26 +02:00
Romain Bignon
4f73e8535e catch every CallErrors errors in repl applications 2010-09-27 13:17:08 +02:00
Romain Bignon
95c445223c change output of 'backends list' command 2010-09-27 00:18:04 +02:00
Romain Bignon
f4f9ef25f4 fixes when no backends are loaded 2010-09-25 02:16:07 -04:00
Romain Bignon
4d5a5003a7 load backends before calling main() 2010-09-25 01:28:34 -04:00