Commit graph

80 commits

Author SHA1 Message Date
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
47232308a9 prompt user to accept an untrusted keyring (closes #771) 2015-01-16 12:21:51 +01:00
Laurent Bachelier
f4c17cdc9d pep8: Fix E303 too many blank lines 2014-10-11 02:15:28 +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
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
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
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
a64c9f2edb Rename BaseApplication to Application 2014-09-26 10:18:12 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Romain Bignon
15a58d5647 import browser exceptions from weboob.tools.exceptions 2014-05-17 14:56:07 +02:00
Romain Bignon
6fcac89dd5 first step in python3 support 2014-05-17 14:27:55 +02:00
Romain Bignon
46d9acd37e display a message when more results are available (closes #1038) 2013-07-27 23:40:24 +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
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
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
541d080c9d Use flake8 if available instead of pyflakes
With flake8, we can check for more issues and ignore those who are not
real issues.

This allowed me to find genuine errors in:
- modules/boursorama/pages/account_history.py
- modules/ing/pages/login.py
- weboob/tools/application/qt/qt.py
I left one in weboob/tools/browser/browser.py for the time being.

Some PEP8 fixes on other files.
2012-11-24 19:46:34 +01:00
Romain Bignon
47887d5560 add handler in applications 2012-11-10 13:25:07 +01:00
Laurent Bachelier
3a66728392 Fix crashes with unicode characters in maintainer name
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Romain Bignon
aea269e9f6 create UserError exception
Modules can raise this exception when they want to print errors to user
2012-04-25 13:43:52 +02:00
Clément Schreiner
76795b27a2 Ask for correct login information (for example "Account ID" in boobank) instead of always asking for "Password". 2012-03-25 12:51:38 +02:00
Laurent Bachelier
062f2c4c3e Fix Python 2.5 support
And fix some PEP8 style issues (mostly about spaces) while I was there.

refs #806
2012-03-13 12:36:02 +01:00
Romain Bignon
3eddf8e6dd fix unicode issue 2012-02-19 18:34:33 +01:00
Romain Bignon
07f105910e add new application qflatboob 2012-02-16 16:29:40 +01:00
Laurent Bachelier
c805f4c866 Information is an uncountable noun 2012-02-10 01:28:40 +01:00
Romain Bignon
dfb52a2624 verbose error messages in Qt applications (closes #775) 2012-02-05 17:19:36 +01:00
Romain Bignon
10215d1e4c add a repositories editor in weboob-config-qt 2012-02-02 17:18:15 +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
fd22eb5367 do not ask before installing a module 2012-01-19 10:50:27 +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
a698e16104 sort backends list by names 2011-08-27 18:35:35 +02:00
Romain Bignon
a255916fa3 support new config management and login callback in applications 2011-05-21 10:28:27 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Romain Bignon
01fcd0bed9 fix when trying to add an already existing backend 2011-02-26 18:28:43 +01:00
Romain Bignon
3ca779c8ca change default size of box 2011-02-26 11:19:33 +01:00
Christophe Benz
851b2d34ca code clean, split too long lines 2010-12-08 18:10:44 +01:00
Christophe Benz
3dd50f363d remove unnecessary brackets 2010-12-08 18:10:42 +01:00
Christophe Benz
f1a43f1101 sort backends alphabetically in right order 2010-12-08 18:10:40 +01:00
Romain Bignon
fb5e8cfbaa remove 'ICap' string from displayed capabilities names 2010-11-27 21:22:52 +01:00
Romain Bignon
c83c923e3d moved ICapDating.get_status() and ICapMessagesPost.get_status() into ICapAccount.get_account_status() 2010-11-20 20:52:53 +01:00
Romain Bignon
b6821b0567 fixes related to ModuleLoadError 2010-11-17 19:43:25 +01:00
Romain Bignon
0746942e02 accept backends name with only letters and digits 2010-11-14 22:18:56 +01:00
Romain Bignon
8997b1fe27 enhancements of register 2010-10-27 23:45:28 +02:00
Romain Bignon
a792b6601c support new Values* classes and ICapAccount with a 'Register' button (closes #390) 2010-10-26 21:02:45 +02:00