Romain Bignon
645fc6e2a9
fix unicode issues
2015-06-22 17:45:03 +02:00
Bezleputh
28d2190d66
manage tty colummns while displaying text
2015-06-19 17:40:04 +02:00
Romain Bignon
05d11e4c36
Revert "manage tty colummns while displaying text"
...
This reverts commit 5852bd5ef9 .
2015-06-10 21:21:07 +02:00
Bezleputh
5852bd5ef9
manage tty colummns while displaying text
2015-06-10 21:13:42 +02:00
Romain Bignon
e3975f38b3
fix compatibility with python2.6
2015-05-24 13:11:32 +02:00
Matthieu Weber
1d67bf360f
formatters: use weboob.tools.misc.guess_encoding instead of locale.getpreferredencoding()
...
Signed-off-by: Matthieu Weber <mweber+weboob@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2015-05-24 11:57:25 +02:00
Matthieu Weber
95cd12fd22
formatters: use locale.getpreferredencoding() instead of utf-8
...
Signed-off-by: Matthieu Weber <mweber+weboob@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2015-05-14 15:07:20 +02:00
Romain Bignon
a33d26558b
move guess_encoding into weboob.tools.misc
2015-05-09 17:52:16 +02:00
smurail
d38656540e
fix issue with encoding
2015-04-28 15:18:24 +02:00
Romain Bignon
b110f10c9e
if backend name is already taken, suggest the first available one with the same base
2015-04-04 12:52:19 +02:00
Kitof
7155539965
Add module_name param in add_backend to allow command line interaction
2015-04-04 12:32:57 +02:00
Florent
b3aabdeeaf
Be consistent in enable state: use human readable values
2015-03-17 22:16:15 +01:00
Florent
9208b7bb31
Add 'on' and 'yes' to enabled values
...
Be consistent with ouiboube core
2015-03-17 22:08:50 +01:00
Romain Bignon
2afd27b4a4
use StateBrowser, s/BrowserToBeContinued/BrowserQuestion/ and coding style fixes
2015-03-08 16:31:36 +01:00
Baptiste Delpey
3a05b29bc3
add BrowserToBeContinued exception and handle it
2015-03-08 14:21:23 +01:00
Romain Bignon
47232308a9
prompt user to accept an untrusted keyring ( closes #771 )
2015-01-16 12:21:51 +01:00
Bezleputh
21affed283
handle attribute error when stdout does not habe encoding attribute (ie xbmcout)
2015-01-11 12:06:16 +01:00
Romain Bignon
faf40c9c1f
as BrowserSSLError now inherits from BrowserUnavailable, change exception catching to handle it (refs #1702 )
2015-01-08 10:46:03 +01:00
Florent Fourcot
76da33368f
Encode properly output in console.py ( fix #1673 )
2014-12-31 18:15:48 +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
Laurent Bachelier
88df613a53
Fix English: "childs" into "children"
...
refs #1675
2014-11-22 16:36:03 +01:00
Bezleputh
faa3891f86
remove wconio dependency
2014-11-22 16:32:11 +01:00
Florent
d6da9843db
Set copyright in applications
2014-10-17 17:57:42 +02:00
Laurent Bachelier
f4c17cdc9d
pep8: Fix E303 too many blank lines
2014-10-11 02:15:28 +02:00
Laurent Bachelier
4f897a8675
pep8: Fix object comparisons
2014-10-11 01:46:25 +02:00
Laurent Bachelier
7aeb3e942e
pep8: Fix indentation is not a multiple of four
...
autopep8 -a -r -i --select E111 .
Manual check.
2014-10-11 01:41:00 +02:00
Laurent Bachelier
21e8f82fd7
pep8: Use "X not in Y" instead of "not X in Y"
...
flake8 --select E713, semi-manual fixing
2014-10-11 01:27:24 +02:00
Laurent Bachelier
448c06d125
pep8 blank lines fixes
...
flake8 --select W391,E302,E301,E304
autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +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
Romain Bignon
b1f20b5489
fix bcall to to new behavior of do(), and fix QtDo too, and all Qt applications...
2014-10-10 17:34:48 +02:00
Florent
628c63f899
Remove backend for do() calls
2014-10-10 14:11:45 +02:00
Florent
2d5bd37756
Documentation on -dd
2014-10-09 13:33:43 +02:00
Bezleputh
d73c6b2245
Add a " LIMIT " keyword in conditions
2014-10-08 13:05:40 +02:00
Laurent Bachelier
7be9a6468b
logging: Create a new level DEBUG_FILTERS
...
This is a cleaner approach that requires less configuration
in other applications.
This also easily allows us to have another color.
Many checks were made on being exactly at the DEBUG level, they were
fixed to also check on being below DEBUG (i.e. DEBUG_FILTERS).
2014-10-07 17:11:09 +02:00
Laurent Bachelier
24aea160b1
logging: Output to stderr, not stdout
2014-10-07 16:10:51 +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
Florent
9949bbf919
Move exceptions to weboob.core.exceptions
2014-10-02 11:04:14 +02:00
Florent
990bb056eb
Replace -D with -dd
2014-10-02 10:56:11 +02:00
Florent
23aec4046c
Add -D option to base applications
2014-10-02 10:56:11 +02:00
Bezleputh
017c6f7e54
handle datetime in condition argument
2014-10-01 17:43:21 +02:00
Florent
a64c9f2edb
Rename BaseApplication to Application
2014-09-26 10:18:12 +02:00
Romain Bignon
d5a43991b6
when getting an object, if at least one is found, display errors but correctly return the found object
2014-09-18 12:51:28 +02:00
Laurent Bachelier
e9c047ce93
applications: Define std* in the proper class
...
This would make weboob-debug unusable, for example.
2014-09-18 12:49:26 +02:00
Romain Bignon
a4c1acd2f0
fix regression introduced by 19a95dc0d6
2014-09-06 11:08:43 +02:00
Laurent Bachelier
c07e23cafc
Use class attributes as much as possible for application output
...
refs #803
2014-09-04 12:41:25 +02:00
Laurent Bachelier
19a95dc0d6
Centralize encoding guesses, default to UTF-8
...
This might not be enough for print() and could need a locale.setlocale()
even though it is generally discouraged.
closes #1352
2014-09-04 12:41:25 +02:00
Romain Bignon
f834f63b02
Use fullid parameter and not a local formatting
2014-09-03 16:15:28 +02:00
Florent
030197c738
Remove the 'inspect' command
2014-09-03 15:02:38 +02:00
Florent
fe02de196b
Remove the webkit_mechanize_browser import
2014-09-03 14:59:54 +02:00