Commit graph

800 commits

Author SHA1 Message Date
Laurent Bachelier
bfb3689456 Add object type filtering to iter_resources 2012-02-05 13:30:02 +01:00
Laurent Bachelier
53915bf6b5 Better way of testing the start of a string 2012-02-04 02:08:56 +01:00
Laurent Bachelier
baab16b931 Fix completion with new Collection objects 2012-02-03 00:07:45 +01:00
Laurent Bachelier
682e14c86a Make CapCollection understandable and useable by humans
* Make the declaration of fct and it in the constructor Collection,
 instead of adding them from the outside
* Add a function to flatten a list containing collection (solves the
 radioob search crash)
* Better display of collections in the "ls" command (and display both id
 and title)
* The "cd" command goes to the root of the path (like the UNIX cd)
* Move the Video object of canalplus in a correct path
* Make Collection iterable
* Add comments to CapCollection
* Cache the result of fct in a Collection; it is only called once
* CollectionNotFound errors can be more explicit by providing a path
* Require utf-8 in collection paths
* Code cleanups
2012-02-02 23:44:13 +01:00
Romain Bignon
10215d1e4c add a repositories editor in weboob-config-qt 2012-02-02 17:18:15 +01:00
Romain Bignon
2421aa9d78 disable keyrings without warnings in pyflakes (refs #706) 2012-02-02 15:59:01 +01:00
Romain Bignon
8bf985ad86 do not prompt password when empty 2012-02-02 15:57:34 +01:00
Romain Bignon
33d7a8d466 fetch icons asynchronously (closes #756) 2012-02-02 15:36:36 +01:00
Romain Bignon
1fa64bf5f1 default parsers are now only lxml and lxmlsoup, to prevent bad behaviors with bad parsers 2012-02-02 10:17:41 +01:00
Romain Bignon
c009b26864 fix crash when a command doesn't have a docstring 2012-02-02 08:44:00 +01:00
Laurent Bachelier
1621f3c3c0 Allow more freedom in page regexps
If the user starts with ^ or ends with $, do not add them. This allows
using only $ or ^.
If it's not a string, don't do anything to it (it has to be a regexp, or
mimic one).
Use search() instead of match(). They are the same, except match implies ^.

This does not break any module, it only adds more possibilities.
2012-02-01 23:19:01 +01:00
Laurent Bachelier
03f65bb121 Try to separate saved responses by backend
closes #661
2012-02-01 23:04:04 +01:00
Laurent Bachelier
57ce35cef1 Better cleanup of generic articles and lefigaro
try_drop_tree() was only removing the first result.
closes #725
2012-02-01 02:04:17 +01:00
Romain Bignon
de1326fcb2 improve message when trying to add a backend with missing dependancies 2012-01-29 14:16:16 +01:00
Romain Bignon
0c1b79cd42 enhancements of the 'a' choice in menu of first launch
- Don't add backends already existing
- ^C stop all backends adding
- Better presentation
- Exit menu after using 'a'
2012-01-29 12:05:22 +01:00
theo
6f27b02865 Add all backends at once
When no backends are loaded, a prompt pops up and
suggest to add some.

This patch adds the possibility to select all at once.

Signed-off-by: theo <theocrite@theocrite.org>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2012-01-29 11:53:24 +01:00
Romain Bignon
3a3bbd377e support XDG Base Directory Specification (closes #765) 2012-01-27 17:34:08 +01:00
Romain Bignon
5bd0aeed41 setup a default logging handler at app startup, before parsing args (-vdq) 2012-01-27 17:34:08 +01:00
Pierre Mazière
99a45daae8 MappedVirtKeyboard: fix default value for map_attr
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2012-01-24 23:51:59 +01:00
Pierre Mazière
2310e8506f MappedVirtKeyboard: set <map> attribute to return
Rather than imposing onclick, the map attribute whose value is returned
when retrieving a code is now a constructor argument
For the sake of backward compatibility, default is set to onclick

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2012-01-24 23:51:56 +01:00
Romain Bignon
fd22eb5367 do not ask before installing a module 2012-01-19 10:50:27 +01:00
Romain Bignon
b3c797978a automatically install missing modules referenced in ~/.weboob/backends 2012-01-19 10:48:26 +01:00
Romain Bignon
ae2f417e0b fix crash when trying to edit a backend of an unexistant module 2012-01-18 00:13:46 +01:00
Romain Bignon
14a7a1d362 support repositories to manage backends (closes #747) 2012-01-17 17:00:05 +01:00
Romain Bignon
4edeba3d62 fix crash when there isn't any photos on a profile 2011-12-12 14:37:24 +01:00
Romain Bignon
d8a3a4360e fix unicode error 2011-12-07 15:07:16 +01:00
Romain Bignon
3110a1cd5a this is the end of the 'oh my fucking god' error message 2011-12-03 13:30:27 +01:00
Florent
7a2b21f1b6 Add the nologin option to "submit"
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-11-29 17:14:41 +01:00
Pierre Mazière
a5453326e0 Add MappedVirtKeyboard class
This is useful for virtual keyboard based on the usemap
attribute of an IMG tag

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:11:32 +01:00
Pierre Mazière
2fdb2fe36a VirtKeyboard: add check_symbols method
This method allows one to verify, before any decoding attempt,
if all the symbols given as arguments can be found in the
virtual keyboard.

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:10:23 +01:00
Pierre Mazière
d9b51c406d VirtKeyboard: symbol detection improvement
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:09:47 +01:00
Pierre Mazière
b14079a31e VirtKeyboard: make color argument mandatory
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:08:33 +01:00
Pierre Mazière
165d264ecb VirtKeyboard: move to weboob/tools/captcha/
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
2011-11-04 10:07:09 +01:00
Pierre Mazière
07d7233685 Add virtual keyboard tool
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-11-02 09:19:08 +01:00
Romain Bignon
59dfe3083a delete 'remove_html_tags' global function, and create IParser.tocleanstring and IParser.strip abstract methods. 2011-10-25 13:28:43 +02:00
Romain Bignon
eb3f681136 bump to 0.a 2011-10-10 11:38:02 +02:00
Romain Bignon
cdf2e86b17 disable keyring (refs #706) 2011-10-10 11:26:39 +02:00
Romain Bignon
b0d84fff2a fix unicode issue (closes #703) 2011-10-04 08:57:04 +02:00
Noé Rubinstein
66b2ccaf9a fix genericcomicreader test 2011-09-26 13:31:21 +02:00
Noé Rubinstein
b873878e31 fixed generic comic reader tests 2011-09-26 13:31:15 +02:00
Noé Rubinstein
ba91601fc7 add tests to genericcomicreader 2011-09-26 13:31:09 +02:00
Noé Rubinstein
f5aa37e0c2 move genericcomicreader to a single file for now 2011-09-26 13:31:07 +02:00
Noé Rubinstein
2993efcf55 remove "http://%s%%s" % DOMAIN workaround and shorten 2011-09-26 13:31:06 +02:00
Noé Rubinstein
f8dbdaf8f0 move genericcomicreader to tools 2011-09-26 13:31:00 +02:00
Laurent Bachelier
478696379c Try to add an extension when saving responses 2011-09-26 12:55:57 +02:00
Romain Bignon
2cc992a8bc new parser 'json' 2011-09-23 10:00:46 +02:00
Romain Bignon
5337e53b49 split BaseBrowser into new class StandardBrowser which is usable without inheriting it 2011-09-23 09:59:12 +02:00
Romain Bignon
a698e16104 sort backends list by names 2011-08-27 18:35:35 +02:00
Romain Bignon
c2e008bda1 to_unicode: handle new common errors 2011-08-25 22:26:28 +02:00
Romain Bignon
367d996d50 get_object doesn't request the backend name in IDs (dedicated to fucking nigger pankkake) 2011-08-12 15:46:40 +02:00