Commit graph

55 commits

Author SHA1 Message Date
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
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
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
Romain Bignon
e234ccfbb1 oops: remove spaces in account IDs 2014-05-19 20:16:36 +02:00
Romain Bignon
0349e85360 display card as accounts (closes #1362) 2014-05-17 16:44:32 +02:00
Romain Bignon
cd5498440e oups typo 2014-02-16 21:38:12 +01:00
Romain Bignon
8fdbf330dd improvements on transaction and account types detection 2014-02-16 21:04:46 +01:00
Romain Bignon
4784cb59c5 support new authentication system 2013-11-23 12:07:12 +01:00
Florent Fourcot
0443855602 browser.encoding is None 2013-10-30 15:14:14 +01:00
Florent
75521d1198 Fix conversion warning
closes #1304
2013-10-28 16:19:39 +01: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
6a198e721c fix typo (bad keyboard) 2013-03-28 09:20:58 +01:00
Romain Bignon
db57ff1c36 support 'OPPOSITION' state for cards (and better detection of unknown values) 2013-03-28 09:15:34 +01:00
Romain Bignon
ccb69b2092 fix possible conflicts in detection of balance 2013-03-27 13:59:00 +01:00
Romain Bignon
f4390d9b26 do not consider expired cards 2013-03-27 13:36:04 +01: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
Romain Bignon
ccd1d507e0 recipient of a transfer can be a name 2013-03-03 16:05:17 +01:00
Romain Bignon
b407d9b08d ok forgot a line 2013-03-03 15:45:03 +01:00
Romain Bignon
ad7124ca2b fix transfer regexp 2013-03-03 15:44:22 +01:00
Romain Bignon
f61b71fb99 do not crash when an account is unavailable 2013-02-04 14:01:51 +01:00
Romain Bignon
32db47cf37 fix login on societegenerale 2013-02-04 13:46:42 +01:00
Romain Bignon
b132484633 fix crash on special accounts 2013-01-10 16:21:26 +01:00
Romain Bignon
adebedc450 fix crash 2013-01-04 09:21:19 +01:00
Romain Bignon
e8dd52221e check date of card debit to apply it 2013-01-04 01:57:06 +01:00
Romain Bignon
d91dad2b2b support currencies 2012-12-06 13:21:13 +01:00
Romain Bignon
db739f9eef update transaction regexps 2012-11-06 18:08:04 +01:00
Romain Bignon
3a68deb9e5 support multi cards list 2012-10-11 11:46:48 +02:00
Romain Bignon
85c9554733 support deferred debit cards 2012-10-10 14:44:34 +02:00
Romain Bignon
7bb19bfe87 oops, missing file 2012-09-24 15:15:12 +02:00
Romain Bignon
cdbda7c05c fix login on website 2012-09-24 15:14:17 +02:00
Romain Bignon
4101ea9c3d handle error message when unable to login 2012-09-15 11:04:49 +02:00
Romain Bignon
4b877f530f update regexps 2012-08-24 17:06:22 +02:00
Romain Bignon
9547cb0afa truncate password to 6 digits 2012-08-09 20:29:07 +02:00
Romain Bignon
168eb85381 support website changes about authentication (closes #891) 2012-06-14 12:54:41 +02:00
Romain Bignon
89ff1d1446 add missing patterns 2012-05-24 23:20:53 +02:00
Romain Bignon
a090c20489 fix follow next pages of history 2012-05-14 22:19:42 +02:00
Romain Bignon
39657d53c8 fix when there are no transactions for the account 2012-04-25 16:11:09 +02:00
Romain Bignon
b2b2ff7b43 fix parsing history when there are unicode chars in labels 2012-04-21 13:34:01 +02:00
Romain Bignon
1737ed017c ooops 2012-04-16 16:58:11 +02:00
Romain Bignon
66d68c50fb support many kind of accounts 2012-04-16 16:54:30 +02:00
Romain Bignon
82a874bc73 detect if a transaction is debited or not 2012-04-16 16:53:39 +02:00
Romain Bignon
22c2210fe7 never convert a float to Decimal 2012-04-11 13:25:58 +02:00
Romain Bignon
d1447062f9 oops, remove unused class 2012-04-09 11:27:03 +02:00
Romain Bignon
fc2380fb58 empty this unused file 2012-04-09 11:26:08 +02:00
Romain Bignon
10dc63e4fa support display of history and coming transactions 2012-04-09 11:21:28 +02:00
Romain Bignon
b157e92d5b use decimal.Decimal instead of float to store amounts of money 2012-03-29 16:31:18 +02:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00