Laurent Bachelier
062f2c4c3e
Fix Python 2.5 support
...
And fix some PEP8 style issues (mostly about spaces) while I was there.
refs #806
2012-03-13 12:36:02 +01:00
Romain Bignon
fbe9ccec04
fix crash when trying to add twice a same module
2012-02-25 13:43:58 +01:00
Romain Bignon
3eddf8e6dd
fix unicode issue
2012-02-19 18:34:33 +01:00
Romain Bignon
9162f1c09e
convert arguments to unicode even if no locales are set
2012-02-17 14:43:09 +01:00
Romain Bignon
07f105910e
add new application qflatboob
2012-02-16 16:29:40 +01:00
Laurent Bachelier
9c5326c0e4
Make CapCollection a bit more useable
...
Collections are not stored in replapplication.objects anymore, but in
replapplication.collections. This fixes the IDs issue. There was no gain
from storing them in objects.
Completion right after cd should be faster (and should always have been
like that, it was pretty much a bug).
The display of do_ls() should be much clearer. Collections are always at
the end, have ids/title/backend like objects (but using a formatter
would be better than my current hack).
There are still many issues with the current implementation.
refs #774
closes #785
2012-02-12 15:49:08 +01:00
Laurent Bachelier
c805f4c866
Information is an uncountable noun
2012-02-10 01:28:40 +01:00
Romain Bignon
dfb52a2624
verbose error messages in Qt applications ( closes #775 )
2012-02-05 17:19:36 +01:00
Laurent Bachelier
bfb3689456
Add object type filtering to iter_resources
2012-02-05 13:30:02 +01:00
Laurent Bachelier
53915bf6b5
Better way of testing the start of a string
2012-02-04 02:08:56 +01:00
Laurent Bachelier
baab16b931
Fix completion with new Collection objects
2012-02-03 00:07:45 +01:00
Laurent Bachelier
682e14c86a
Make CapCollection understandable and useable by humans
...
* Make the declaration of fct and it in the constructor Collection,
instead of adding them from the outside
* Add a function to flatten a list containing collection (solves the
radioob search crash)
* Better display of collections in the "ls" command (and display both id
and title)
* The "cd" command goes to the root of the path (like the UNIX cd)
* Move the Video object of canalplus in a correct path
* Make Collection iterable
* Add comments to CapCollection
* Cache the result of fct in a Collection; it is only called once
* CollectionNotFound errors can be more explicit by providing a path
* Require utf-8 in collection paths
* Code cleanups
2012-02-02 23:44:13 +01:00
Romain Bignon
10215d1e4c
add a repositories editor in weboob-config-qt
2012-02-02 17:18:15 +01:00
Romain Bignon
8bf985ad86
do not prompt password when empty
2012-02-02 15:57:34 +01:00
Romain Bignon
33d7a8d466
fetch icons asynchronously ( closes #756 )
2012-02-02 15:36:36 +01:00
Romain Bignon
c009b26864
fix crash when a command doesn't have a docstring
2012-02-02 08:44:00 +01:00
Romain Bignon
de1326fcb2
improve message when trying to add a backend with missing dependancies
2012-01-29 14:16:16 +01:00
Romain Bignon
0c1b79cd42
enhancements of the 'a' choice in menu of first launch
...
- Don't add backends already existing
- ^C stop all backends adding
- Better presentation
- Exit menu after using 'a'
2012-01-29 12:05:22 +01:00
theo
6f27b02865
Add all backends at once
...
When no backends are loaded, a prompt pops up and
suggest to add some.
This patch adds the possibility to select all at once.
Signed-off-by: theo <theocrite@theocrite.org>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2012-01-29 11:53:24 +01:00
Romain Bignon
3a3bbd377e
support XDG Base Directory Specification ( closes #765 )
2012-01-27 17:34:08 +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
fd22eb5367
do not ask before installing a module
2012-01-19 10:50:27 +01:00
Romain Bignon
b3c797978a
automatically install missing modules referenced in ~/.weboob/backends
2012-01-19 10:48:26 +01:00
Romain Bignon
ae2f417e0b
fix crash when trying to edit a backend of an unexistant module
2012-01-18 00:13:46 +01:00
Romain Bignon
14a7a1d362
support repositories to manage backends ( closes #747 )
2012-01-17 17:00:05 +01:00
Romain Bignon
d8a3a4360e
fix unicode error
2011-12-07 15:07:16 +01:00
Romain Bignon
b0d84fff2a
fix unicode issue ( closes #703 )
2011-10-04 08:57:04 +02: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
a698e16104
sort backends list by names
2011-08-27 18:35:35 +02:00
Romain Bignon
367d996d50
get_object doesn't request the backend name in IDs (dedicated to fucking nigger pankkake)
2011-08-12 15:46:40 +02:00
Romain Bignon
18dd9e2b8f
always flush formatter after calling a command
2011-08-12 09:56:30 +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
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
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
a255916fa3
support new config management and login callback in applications
2011-05-21 10:28:27 +02:00
Romain Bignon
d600e763b3
do not run player in background ( closes #664 )
2011-05-18 11:44:20 +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
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
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
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
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