Commit graph

804 commits

Author SHA1 Message Date
Laurent Bachelier
381c5a3847 Order choices 2013-12-10 19:48:34 +01:00
Romain Bignon
9fdc1b4d56 FrenchTransaction.parse_date isn't a class method anymore
This is because we call self._logger to log errors
2013-12-04 22:40:01 +01:00
Romain Bignon
1a581a1543 change FrenchTransaction.parse_date to be a class method 2013-11-29 15:14:57 +01:00
Florent
578216b55e Move the test on self.insecure to catch direct calls
Module likes societegenerale includes direct calls
on lowsslcheck, and the option -I (insecure) is not tested.
2013-11-26 18:39:34 +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
98a4d0547a Make a real link in signature 2013-10-30 15:02:40 +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
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