Commit graph

185 commits

Author SHA1 Message Date
Samuel Loury
b32540e445 Prevent pyflakes from being called if not found 2014-11-28 17:24:34 +01:00
Samuel Loury
bd7891f202 Allow ResultsCondition to compare timedelta
The user may now use conditions on durations (from the audio and the video
capabilities) in repl applications.

The documentation has been updated to take this change into account.
2014-11-28 14:55:55 +01:00
Pierre-Louis Bonicoli
88faf18aa3 bash completion: hide errors (closes #1671)
For system installation, the bash auto-completion will display messages
for users without home directory. Redirect stderr to null
2014-11-18 22:19:26 +01:00
Laurent Bachelier
dbce17085e boilerplate: Fix import, fix PEP8/isort 2014-11-16 18:25:48 +01:00
Florent
feb1405813 bump to 1.1 2014-10-17 14:10:38 +02:00
Laurent Bachelier
3ca07513b7 make_man: Text improvements
"sort" is confusing, we filter results, not order them. "sort out" would
also work.
2014-10-11 11:30:53 +02:00
Romain Bignon
c92d74c8a7 copyright on top of file 2014-10-11 07:32:26 +02:00
Laurent Bachelier
6161a0aacd pep8 fixes, modernizations
autopep8 -a -r -i --select E711,E712,W601,W602,W603,W604,W690,E304,E401,E502 .
Also includes some manual reindentations (many are left after the print()
changes).
Manually checked, some modernizations not commited here.
2014-10-10 23:41:43 +02:00
Bezleputh
d73c6b2245 Add a " LIMIT " keyword in conditions 2014-10-08 13:05:40 +02:00
Romain Bignon
5bd70c564f os.isatty is now forbidden (as stream.fileno() is not implemented by StringIO)
Use stream.isatty() instead.
2014-10-07 09:39:12 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Romain Bignon
be7d49312d add check to prevent prints in weboob modules 2014-10-06 17:22:37 +02:00
Laurent Bachelier
a64787f7f7 Add some previous fixes to pyflakes.sh checks 2014-10-06 17:00:26 +02:00
Laurent Bachelier
74a4ef6723 Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w

With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00
Laurent Bachelier
d22656308a debpydep: Use Python3-compatible syntax 2014-10-06 14:05:03 +02:00
Florent
a019819f9d Move browser2 from weboob/tools/b2 to weboob/browser2 2014-10-02 11:01:34 +02:00
Laurent Bachelier
ada65e8143 tests: Allow changing modules path and adding to PYTHONPATH
This way run_tests.sh follows what local_run.sh can do.
2014-10-01 16:23:04 +02:00
Florent
0b58c9a26b Rename filenames in boilerplate 2014-09-26 11:09:35 +02:00
Florent
a64c9f2edb Rename BaseApplication to Application 2014-09-26 10:18:12 +02:00
Florent
5a1d83b567 Rename BaseModule to Module and Module to LoadedModule 2014-09-26 10:18:12 +02:00
Florent
f3aeddffbc Rename backend.py to module.py 2014-09-26 10:18:12 +02:00
Florent
ac5b410b0d Update weboob_lint 2014-09-26 10:18:12 +02:00
Florent
9370b2fae7 s/Backend/Module 2014-09-26 10:18:11 +02:00
Florent
5fe0092c2c Move base_backend.py to base_module.py 2014-09-26 10:18:11 +02:00
Florent
3ecb491c1c s/BACKEND/MODULE/ 2014-09-26 10:18:11 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +02:00
Laurent Bachelier
174b5674c1 boilerplate: Remove useless __all__ 2014-09-09 18:50:24 +02:00
François Revol
e25d8cabc4 Use XDG_CONFIG_HOME as fallback 2014-09-05 08:37:55 +02:00
Florent
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Florent
d479a86c4d Add a simple script to help generating changelog 2014-09-02 15:48:52 +02:00
Florent
6de2ed66b1 Upgrade the error message in boilerplate 2014-07-07 16:30:57 +02:00
Laurent Bachelier
36a4b78e67 make_man: Tell that it was generated automatically
So people don't waste time altering them, but alter the source instead.
2014-06-20 17:58:51 +02:00
Oleg Plakhotniuk
a2bbd19a75 Fix call of test.py
close #1403
2014-06-18 15:00:50 +02:00
Oleg Plakhotniuk
0572b710c3 Fix call of pyflakes on Archlinux
close #1404
2014-06-18 14:58:54 +02:00
Laurent Bachelier
da611a08f8 local_run: Allow customizing where the modules are 2014-05-26 20:07:41 +02:00
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +02:00
Florent
1db6406e08 Run tools/stale_pyc.py before local installation 2014-04-15 10:41:44 +02:00
Vincent A
7f159cf20d Fix missing URL import in base boilerplate 2014-04-04 00:56:29 +02:00
Romain Bignon
08adb2a63e use browser2 in boilerplate 2014-03-22 12:43:53 +01:00
Romain Bignon
12470c1b8f ignore 'except' in a comment 2014-03-13 22:06:48 +01:00
Vincent A
43ec8a8a00 boilerplate: fix variable misuse in 'cap' recipe 2014-03-02 21:32:43 +01:00
Vincent A
7b6c5e8544 boilerplate: add 'cap' recipe to prepare methods 2014-03-02 20:57:28 +01:00
Florent
e91d05b207 Espace more "-" in man pages 2014-02-19 14:57:24 +01:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Florent
c045c34379 Revert "Trailing whitespace"
Python does not like """"

This reverts commit ff34cc7b66.
2014-01-08 23:38:27 +01:00
Florent
ff34cc7b66 Trailing whitespace 2014-01-08 23:29:55 +01:00
Laurent Bachelier
665e19b80b local_run: Augment existing PYTHONPATH 2013-12-30 02:47:07 +01:00
Laurent Bachelier
513567b6f8 Fix some typos and better wording on conditions documentation 2013-12-16 16:46:54 +01:00
Florent
920e8edc44 Add documentation on conditions 2013-12-16 16:40:14 +01:00
Laurent Bachelier
531e93999a Use more common syntax, perhaps fixing a bug
refs #1299
2013-12-10 19:48:31 +01:00