Commit graph

62 commits

Author SHA1 Message Date
Baptiste Delpey
0f93a080b0 boursorama fix duplicate accounts 2015-08-03 17:03:11 +02:00
Vincent Paredes
9749f5c7a8 raising incorrecte password when profil is incomplete 2015-04-28 14:57:37 +02:00
Romain Bignon
8f24a3fe8f remove text after card number if any 2015-03-16 15:13:08 +01:00
Romain Bignon
2afd27b4a4 use StateBrowser, s/BrowserToBeContinued/BrowserQuestion/ and coding style fixes 2015-03-08 16:31:36 +01:00
Baptiste Delpey
aa721c28b8 boursorama two_authentication with BrowserToBeContinued instead of raw_input 2015-03-08 14:21:23 +01:00
Romain Bignon
2f61835521 introduce new type Account.TYPE_LIKE_INSURANCE 2015-02-05 18:35:06 +01:00
Romain Bignon
6063964c68 ignore moneycenter accounts 2015-01-21 10:16:13 +01:00
Romain Bignon
4530278c1e fix website changes (virtual keyboard, accounts list) closes #1696 2014-12-18 11:28:59 +01:00
Florent
9c86b8f25b Better explanation for Investment class 2014-10-23 15:20:59 +02:00
Florent
258328a06f Fix copyright 2014-10-23 15:17:47 +02:00
smurail
8672a6b443 add investment to boursorama bank module 2014-10-23 14:59:57 +02:00
smurail
56e9d53adb cleaner way to iterate 2014-10-23 14:54:37 +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
e783f2c821 Remove tuple method parameters
They can be found through autopep8 (W690) or python-modernize.
Variables manually renamed.

This is because Python 3 does not support tuple unpacking:
http://legacy.python.org/dev/peps/pep-3113/
2014-10-10 23:41:44 +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
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
Florent
444d36eee8 Rename BasePage to Page 2014-09-26 10:18:12 +02:00
Laurent Bachelier
3da02fde24 Remove useless __all__ in modules
They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.

The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
2014-09-09 19:00:02 +02:00
Laurent Bachelier
0f90d6e9dd Some English fixes
"informations" is incorrect; try to use a better word, or the invariant "information".
2014-07-09 12:50:32 +02:00
Romain Bignon
afd5bba8a1 fix ignore of "total" lines 2014-05-08 10:20:12 +02:00
Romain Bignon
188220e0c1 get more history on cards 2014-04-26 23:08:44 +02:00
Romain Bignon
3857eec659 fix parsing cards history 2014-04-26 23:03:40 +02:00
Romain Bignon
7502310d7e fix crash when the card history is empty 2014-03-01 19:23:06 +01:00
Raphaël Rigo
9d211201c7 card history parser
Signed-off-by: Raphaël Rigo <devel-git@syscall.eu>
Signed-off-by: Romain Bignon <romain@symlink.me>
2014-03-01 19:19:27 +01:00
Raphaël Rigo
31af964696 Handle card history
Signed-off-by: Raphaël Rigo <devel-git@syscall.eu>
Signed-off-by: Romain Bignon <romain@symlink.me>
2014-03-01 19:19:27 +01:00
Romain Bignon
f5869b8262 fix crash when there isn't no ID on transaction 2014-01-14 23:32:29 +01:00
Romain Bignon
f0310dc576 fix crash when there is no link on an opening account 2013-09-29 18:34:08 +02:00
Laurent Bachelier
23a71d847b Code style fixes, mostly whitespace 2013-08-04 20:00:19 +02:00
Romain Bignon
f9f6049019 fix parsing on special cases 2013-07-25 15:27:36 +02:00
Romain Bignon
11a161c1b1 boursorama: support website changes 2013-07-25 11:51:42 +02:00
Juliette Stehlé
06167275c3 Add PEL history support
PEL accounts do not have an ID column.
2013-07-06 19:16:05 +02:00
Florent
1928f2a500 Fix paging on new website 2013-07-03 12:07:45 +02:00
Romain Bignon
53503a98a2 fix auth (upstream changed grid images) 2013-05-24 09:36:40 +02:00
Romain Bignon
9f9f8edc01 cleanup 2013-04-01 15:17:04 +02:00
Gabriel
ee4f3793a1 Add two factor authentication for boursorama module 2013-04-01 15:05:26 +02:00
Laurent Bachelier
e0542c2e4a Fix comparisons to None
Diff checked manually.

autopep8 -a -ir -j2 --select=E711 .

This required the "agressive" option because it can change code
behavior.
2013-03-16 00:57:30 +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
Florent
8c66ca83c8 Remove unused imports 2013-03-02 10:31:34 +01:00
Florent
f7d7240c09 Remove mkdtemp in modules 2013-03-01 13:58:50 +01:00
Romain Bignon
3acbba30d9 do not crash for special accounts 2013-02-25 13:50:43 +01:00
Romain Bignon
4df089ee1b get maximum history 2013-02-23 13:15:05 +01:00
Romain Bignon
cc31e73f23 on page to update user information, raise BrowserIncorrectPassword 2013-02-10 17:17:06 +01:00
Florent
2ddf8f66b9 Take the operation id of the bank 2013-01-26 13:55:29 +01:00
Florent
b671819d91 Better choice of url to get history
Work now with livret A accounts
2013-01-25 10:56:21 +01:00
Romain Bignon
4f7a2b88f0 support new virtkeyboard 2013-01-10 13:20:41 +01:00
Romain Bignon
d91dad2b2b support currencies 2012-12-06 13:21:13 +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
45a5080332 correctly parse label of deferred card transactions 2012-11-04 15:37:01 +01:00