Commit graph

405 commits

Author SHA1 Message Date
Florent
3296d57132 Remove useless TODO 2013-02-07 15:49:33 +01:00
Florent
0072b5e076 Allow infinite search with 0 2013-02-07 14:51:38 +01:00
Romain Bignon
b770163d9b fix crash when there is no selected fields (yes, all the time, why nobody has reported it) 2013-02-07 14:21:06 +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
Laurent Bachelier
e407fd1dfa Add mplayer2 support 2013-01-25 13:46:55 +01:00
Romain Bignon
1006e9ff83 ability to give several arguments in 'player_name' config option 2013-01-14 22:29:50 +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
4d1e6f8436 Add support for ls -d option (closes #858)
This behaves like the UNIX ls -d.
This should solve the use case of Bug #858; ls was never intended to
work that way before. Users can now chose between the two modes (with or
without -d).
2013-01-10 09:38:09 +01:00
Julien Hebert
16edbd9141 prise en charge du rtmp 2012-12-10 18:07:49 +01:00
Julien Hebert
d5ea1ffc2c on est pas sous apple. 2012-12-10 18:07:49 +01:00
Laurent Bachelier
541d080c9d Use flake8 if available instead of pyflakes
With flake8, we can check for more issues and ignore those who are not
real issues.

This allowed me to find genuine errors in:
- modules/boursorama/pages/account_history.py
- modules/ing/pages/login.py
- weboob/tools/application/qt/qt.py
I left one in weboob/tools/browser/browser.py for the time being.

Some PEP8 fixes on other files.
2012-11-24 19:46:34 +01:00
Romain Bignon
47887d5560 add handler in applications 2012-11-10 13:25:07 +01:00
Laurent Bachelier
f48c81de53 Properly get to the previous path, not home 2012-11-08 11:51:52 +01:00
Laurent Bachelier
3a66728392 Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Laurent Bachelier
571db865ab Simpler acquire_input()
Might work with Python 2.5 as a side-effect of not using delete.
2012-10-21 18:02:06 +02:00
Romain Bignon
bf3206418b display a custom bold warning on SSLError 2012-09-01 13:37:18 +02:00
Romain Bignon
538578c83f don't crash when there the input is empty 2012-07-23 17:25:07 +02:00
Florent
d0c7a18d20 Add suggestion of commands in case of if "unknown"
Very useful to find the good short alias...
2012-07-20 19:32:50 +02:00
Florent
37c68b7ba6 Search and execute short command alias 2012-07-20 19:31:24 +02:00
Romain Bignon
8e550b4196 handle UserError during fillobj 2012-06-16 13:52:03 +02:00
Florent
bad531679a Fix table formatter with 0.6 version
I didn't see a way to only align header...
2012-05-21 17:47:34 +02:00
Romain Bignon
fa197cce6e correctly check new version of module 2012-05-05 16:26:00 +02:00
Romain Bignon
f7214e5e62 ability to format dicts 2012-05-04 16:27:49 +02:00
Romain Bignon
c498d41aef fix printing unicode error 2012-05-04 10:59:18 +02:00
Romain Bignon
6f46c41743 do not fail during fullobj() if the object is not supported by backend 2012-04-28 16:38:55 +02:00
Romain Bignon
e5474c26a1 remove '-' from readline delims 2012-04-27 14:31:44 +02:00
capitaldata
5e8ac671da add list-modules option in the command line interface
ex: radioob> backends list-modules

Signed-off-by: capitaldata <capitaldata@capitaldata-desktop2.(none)>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-04-27 14:31:40 +02:00
Romain Bignon
3974355cec bug handler: update repositories only if module is on a remote one 2012-04-26 12:13:10 +02:00
Florent
92d5e9ea0f Get all available subscriptions for details command
Add a new method get_object_list to ReplApplication
Should close #846.
2012-04-25 13:50:42 +02:00
Romain Bignon
13524cae32 when a bug occures in a module, suggest to update it 2012-04-25 13:45:52 +02:00
Romain Bignon
aea269e9f6 create UserError exception
Modules can raise this exception when they want to print errors to user
2012-04-25 13:43:52 +02:00
Romain Bignon
20835e5180 ls: clear objects list 2012-04-10 13:25:55 +02:00
Laurent Bachelier
2d463e060e Hide ConversionWarning by default
refs #839
2012-04-10 08:01:27 +02:00
Romain Bignon
101eabf17a fix format of dicts 2012-04-07 23:15:06 +02:00
Romain Bignon
fc849995f4 rewrite of the formatters system 2012-04-03 22:40:38 +02:00
Roger Philibert
4b05f77329 [app/console] use EDITOR env variable to edit input 2012-04-01 19:28:11 +02:00
Laurent Bachelier
3b2bafdf12 Centralize "empty" comparisons
And always use "is" instead of "==".
2012-03-27 12:14:37 +02:00
Romain Bignon
c6a141595c change way to describe fields of CapBaseObject, and lot of documentation 2012-03-26 14:35:54 +02:00
Clément Schreiner
76795b27a2 Ask for correct login information (for example "Account ID" in boobank) instead of always asking for "Password". 2012-03-25 12:51:38 +02:00
Romain Bignon
1833952af1 fix completion of 'cd' after using 'ls' with a parameter 2012-03-25 09:45:31 +02:00
theo
67ae0893cd Add completion to ls in CapCollection
The completion is the same code as ls used to call.
2012-03-20 07:52:40 +01:00
theo
8c977825b9 ls dir is equivalent to cd dir + ls + cd ..
Until now, ls discarded arguments.

ls = ls dir:

videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)
videoob> ls sport
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)

With this patch, we are now able to ls a dir without chdir into it.

For instance:
videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)
videoob> ls sport
~ (les-incontournables) Les incontournables (canalplus)
~ (les-plus-recentes) Les plus recentes (canalplus)
~ (les-plus-vues) Les plus vues (canalplus)
~ (tout-le-football) Tout le football (canalplus)
~ (tout-le-rugby) Tout le rugby (canalplus)
~ (tout-le-basket) Tout le basket (canalplus)
~ (tout-le-tennis-golf) Tout le tennis / golf (canalplus)
~ (autres-sports-home-sport) Autres sports - home sport (canalplus)
~ (les-emissions-sport) Les emissions sport (canalplus)
videoob> ls
~ (emissions) Emissions (canalplus)
~ (sport) Sport (canalplus)
~ (cinema) Cinema (canalplus)
~ (cesar-2012) Cesar 2012 (canalplus)
~ (series-fictions) Series / fictions (canalplus)
~ (du-hard-ou-du-cochon) Du hard ou du cochon (canalplus)
~ (divertissement) Divertissement (canalplus)
~ (canal-street) Canal street (canalplus)
~ (musique) Musique (canalplus)
~ (docus-infos) Docus / infos (canalplus)

Signed-off-by: theo <theocrite@theocrite.org>
2012-03-16 17:20:18 +01:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Laurent Bachelier
fae4470101 Prepare for objects that are also Collections
Don't force objects to have an id, especially since that id was
incorrect. "plap/plop" would have the same id as "plop", i.e. "plop".
We don't rely on the id for handling Collections anymore.

Change to use more unique property names.

Change the display, instead of using '*', we use '~', and there is no
"Collection" header anymore.
Updated formatters could use that way of showing the object is also a
collection too.

refs #774
2012-03-13 22:08:46 +01:00
Laurent Bachelier
f4dbefb6ef Add some useful properties to Collection 2012-03-13 22:08:46 +01:00
Laurent Bachelier
e70a125ab9 Make collection validation more powerful
Handle and use exceptions.
An example is provided with the redmine backend (not very useful
though). If you cd into the project title instead of the id, it is
accepted and the path is corrected.
2012-03-13 22:08:46 +01:00
Laurent Bachelier
c0121ae6ab Fix crash when entering unicode paths
prompt must be str, not unicode, so we encode it
2012-03-13 22:08:46 +01:00