Commit graph

775 commits

Author SHA1 Message Date
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
Laurent Bachelier
fbe0fb8d52 Some manual style fixes 2013-03-16 00:57:31 +01:00
Laurent Bachelier
e0542c2e4a Fix comparisons to None
Diff checked manually.

autopep8 -a -ir -j2 --select=E711 .

This required the "agressive" option because it can change code
behavior.
2013-03-16 00:57:30 +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
Laurent Bachelier
5747a98541 Use Firefox ESR
This is a long-term support version (54 weeks), which is ideal for us.
2013-03-02 10:35:07 +01:00
Florent
8c66ca83c8 Remove unused imports 2013-03-02 10:31:34 +01:00
Florent
9dc9157062 Prevent useless debug folders 2013-03-01 13:41:50 +01:00
Laurent Bachelier
99f8a03895 Cache the sucessful protocols
And avoid doing too many failed handshakes.
2013-02-11 14:45:28 +01:00
Laurent Bachelier
085c784691 Fall back on SSLv3 if TLSv1 fails
This is so dirty :(
2013-02-11 14:45:27 +01:00
Laurent Bachelier
79769265cf fix pyflakes/flake8 issue
date is imported as a module, avoid using it as a variable.
also PEP8 fix.
2013-02-10 20:17:27 +01:00
Romain Bignon
69e4c77257 use recent firefox user agent 2013-02-10 02:17:54 +01:00
Romain Bignon
06b314de48 little fixes
- logger might be a private attribute
- compare rdate to date, not to today
2013-02-10 02:17:54 +01:00
Romain Bignon
63dc4e05da support empty dates for transactions 2013-02-08 14:46:01 +01:00