Commit graph

452 commits

Author SHA1 Message Date
Florent
af5452091b Add -s option to ls (sort by backend/id)
closes #1079
2013-12-16 14:31:23 +01:00
Florent
3983590d76 Remove condition in format function
Forgot to clean it in a3e6e98b4e
2013-12-16 14:00:03 +01:00
Florent
ecddbd6be3 Fix JSON export
Closes #1294
2013-12-15 17:05:01 +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
Florent
8b2ced6dc5 Do not return None objects on get_object
Fix the "bug" of passing urls to videoob with
multiple backends.
2013-11-07 09:15:58 +01:00
Florent
c712da56a3 Catch errors in boobill (cmds without args)
Closes #1303
2013-10-28 18:25:52 +01:00
Florent
9fee613cba Call self.weboob.do in ReplApplication.get_object_list 2013-10-28 17:00:02 +01:00
Laurent Bachelier
2406b26b02 Hide FormFieldConversionWarning too 2013-08-09 00:25:51 +02:00
Florent
9a0f9d0fc9 Remove condition from core 2013-08-06 19:05:21 +02:00
Florent
29567cffa4 Enable infinite search by default is condition is set 2013-08-06 18:54:49 +02:00
Florent
6b0930ffc5 Move condition from BCall to Repl 2013-08-06 18:45:03 +02:00
Florent
c97f33633a Fix the error message 2013-08-06 18:23:53 +02:00
Florent
78cfe65b2e Add the "grep" operator 2013-08-06 18:12:20 +02:00
Florent
8802d697ba Fix typo 2013-08-06 14:11:52 +02:00
Florent
bd48a75ade Rewrite conditions
Support < and > operators
Simplify some code
2013-08-06 13:46:45 +02:00
Florent
31016c4846 Rewriting of ResultsCondition, first part
Allow to give int, float, and not only strings
Fix AND/OR conditions
Add some comments to unterstand this fucking code
2013-08-05 17:06:16 +02:00
Florent
4dbe7b8c5d Fix OR condition
Return True at the first True result, return False if no condition
match

Closes #1288
2013-08-05 15:56:54 +02:00
Romain Bignon
82fe5f7df0 several fixes about command helps
- add help on command help
- add bold in do_help instead of get_command_help
- get_commands_doc() returns full help
2013-08-03 12:28:05 +02:00
Laurent Bachelier
e78714b560 Reuse termcolor's environment variable to disable colors 2013-08-03 01:19:05 +02:00
Romain Bignon
63648a8353 fix formatting if termcolor is not installed
This code was useless anyway
2013-07-30 18:51:49 +02:00
Florent
df2a804de6 s/count parameter/count command/ 2013-07-30 10:57:11 +02:00
Florent
22c963b8ff Improves hint message 2013-07-30 10:47:23 +02:00
Romain Bignon
9fe4faa6bb add missing docstrings to commands 2013-07-28 00:23:31 +02:00
Romain Bignon
46d9acd37e display a message when more results are available (closes #1038) 2013-07-27 23:40:24 +02:00
Romain Bignon
4c4fb24291 ls: display collections before objects 2013-07-27 23:40:24 +02:00
Romain Bignon
de45700a49 automatically create a storage if STORAGE class attribute is not empty 2013-07-27 21:35:02 +02:00
Romain Bignon
bcc75c37c7 add bold on command syntax in help 2013-07-27 18:43:13 +02:00
Romain Bignon
599775b3fb when termcolor is missing, fake colored() function can add bold 2013-07-27 18:10:14 +02:00
Romain Bignon
bbbca2214b output gay colored results of searches 2013-07-27 17:33:29 +02:00
Romain Bignon
9d46a62d6c do not output bold at all when stdout is not a tty 2013-07-27 17:20:48 +02:00
Romain Bignon
9094294683 default behavior is to unlimit results, except for explicit commands (searches or history)
closes #1139
2013-07-27 15:56:45 +02:00
Romain Bignon
f1305f0daa invoking 'help' command from shell display only list of commands (no options) 2013-07-27 15:56:45 +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
Romain Bignon
c0740e695d remove useless import of with_statement (we do not support anymore python2.5)
refs #806
2013-07-27 14:38:18 +02:00
Romain Bignon
a98ab89671 get_object supports backend's services returning lists 2013-07-27 14:28:10 +02:00
Florent
a37fcf448b Fix printing of DictObj
a6fbcbaec7 introduces a bug in
printing of DictObj. It brokes "weboob-config list",
"weboob-config modules", etc.
2013-07-25 16:56:02 +02:00
Laurent Bachelier
c8b013be53 Better handling of "tiny" choices, allow forcing 2013-07-19 19:25:38 +02:00
Florent Fourcot
34bb4d52a1 Add a new caps parameter to get_object 2013-07-16 23:00:41 +02:00
Romain Bignon
9731ae1b91 weboob-config edit: fix error if there are private attributes on backend
(for example _enabled or _proxy)
2013-04-10 17:40:23 +02:00
Romain Bignon
0a603ff42a qt: display a dialog to ask user to update repositories at run if error 2013-03-26 09:53:17 +01:00
Laurent Bachelier
be3e19a203 try/except import are now handled by flake8 2.0+ / pyflakes 0.6+ 2013-03-19 19:10:20 +01:00
Laurent Bachelier
fbe0fb8d52 Some manual style fixes 2013-03-16 00:57:31 +01: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
Laurent Bachelier
c21d1f7925 Code clarity fixes
autopep8 -ir -j2 --select=E303,E125
Diff checked manually.
2013-03-16 00:52:43 +01:00
Laurent Bachelier
a6fbcbaec7 Reconcile the two previous commits (json/to_dict)
Also fix some to_dict move things that were incomplete.
And some PEP8 fixes.

closes #1060
closes #1061
2013-03-09 15:14:17 +01:00
Julien Hebert
1b47455225 refs #1060 : move to_dict to base.py 2013-03-09 14:57:09 +01:00
Julien Hebert
8d8fe9090f json encoder 2013-03-09 14:57:08 +01:00
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