Commit graph

791 commits

Author SHA1 Message Date
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
Laurent Bachelier
bfe3ac6bcd Remove comments on deleted code
They were still there because the code was automatically removed.
2013-08-03 22:15:30 +02:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +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
Florent
33b682d24a Add a timeout to DNS values in cache 2013-08-02 13:09:31 +02:00
Florent
b058ef785e Add a local DNS cache in browser
Should solve BNP DNS errors
2013-08-02 12:59:12 +02:00
Romain Bignon
6a1ac6d6b6 FrenchTransaction.parse takes a new optional argument 'vdate' 2013-08-01 16:52:16 +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
fd5901b00e Use NamedTemporaryFile(delete=False) instead of mkstemp 2013-07-27 15:42:23 +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
Noé Rubinstein
539eceef2e weboob.tools.date: add parse_french_date 2013-07-26 22:56:09 +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
Romain Bignon
59695eafc9 fix crash if backend name contains unicode chars 2013-07-23 22:11:23 +02:00
Laurent Bachelier
db9f2d6d73 Tools to easily get the CERTHASH 2013-07-23 20:25:51 +02:00
Laurent Bachelier
4b38dcbbed Fix doctests for pyflakes
I'm pretty sure those doctests will not work if ran, but they serve
as useful documentation.
2013-07-21 00:40:49 +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
Laurent Bachelier
5f9641e201 Fix doctest syntax
This also had the power to crash newer pyflakes releases.
2013-07-04 00:14:44 +02:00
Florent
74f15059e9 Fix Pillow import in core 2013-06-06 13:49:39 +02:00
Romain Bignon
6f95fdd800 do not crash if date in label regexp isn't valid 2013-05-20 20:59:14 +02:00
Laurent Bachelier
a0abba9810 Allow overriding delay and tries in decorated function arguments 2013-05-14 10:39:03 +02:00
Laurent Bachelier
512ac5ceaa Allow value if equals to default 2013-05-06 00:15:30 +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
Laurent Bachelier
5621107ee2 Fix alignment to 4 spaces 2013-04-03 19:04:56 +02:00
Romain Bignon
09b0ae72d4 implicitly convert unicode objects to str for form values 2013-04-01 17:24:20 +02:00
Romain Bignon
0335020963 all string values are unicode 2013-04-01 17:01:29 +02:00
Romain Bignon
59dea09c8a fix problem with strftime on date.year<1900 2013-03-30 12:30:33 +01:00
Laurent Bachelier
edf72dfb33 Do not try to fill None
Use case: videoob play on an unknown URL.
The get_object(... , ['url']) would throw a FieldNotFound, when the
right error should be video not found.
2013-03-30 01:04:37 +01:00
Florent
9484099a1d bump to 0.g 2013-03-26 18:31:12 +01: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