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
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
a019819f9d
Move browser2 from weboob/tools/b2 to weboob/browser2
2014-10-02 11:01:34 +02:00
Florent
54a1bc4809
Remove * imports in filters
2014-09-29 22:31:54 +02:00
Romain Bignon
7d8571195f
fix docstring issues
2014-08-30 20:45:10 +02:00
Oleg Plakhotniuk
649d777ac5
Transaction amounts cleaner helper for american banks.
...
Signed-off-by: Oleg Plakhotniuk <olegus8@gmail.com>
2014-08-30 17:51:31 +02:00
Romain Bignon
0afc360970
FrenchTransaction.Amount can take a replace_dots parameter
2014-08-21 16:25:30 +02:00
Florent
76cb004eb4
Move ItemListTable-Element outside of page.py
...
One of the goal is to not import all modules needed by filters by
loading the page file.
In the same goal, move the import of parsers in the class definition.
2014-07-09 10:23:20 +02:00
Romain Bignon
5c8982e5e9
Filter does not have any logger, raise an exception instead
2014-05-19 22:07:34 +02:00
Romain Bignon
ba7d10046f
Amount filter: credit_selector is optional too
2014-05-08 10:27:34 +02:00
Romain Bignon
07f6507096
improve documentation of browser2
2014-04-12 15:02:34 +02:00
Romain Bignon
a84d5f947c
add a possible label title
2014-03-26 11:10:09 +01:00
Romain Bignon
75f17333a2
add TransactionsElement and TransactionElement
2014-03-12 08:43:48 +01:00
Romain Bignon
fd8136ebfe
keep order in obj_* attributes, and changes in API
2014-03-10 22:52:59 +01:00
Romain Bignon
8b9073de12
add specific filters for browser2
2014-03-10 13:11:07 +01:00
Romain Bignon
9fdc1b4d56
FrenchTransaction.parse_date isn't a class method anymore
...
This is because we call self._logger to log errors
2013-12-04 22:40:01 +01:00
Romain Bignon
1a581a1543
change FrenchTransaction.parse_date to be a class method
2013-11-29 15:14:57 +01:00
Romain Bignon
6a1ac6d6b6
FrenchTransaction.parse takes a new optional argument 'vdate'
2013-08-01 16:52:16 +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
6f95fdd800
do not crash if date in label regexp isn't valid
2013-05-20 20:59:14 +02:00
Romain Bignon
06b314de48
little fixes
...
- logger might be a private attribute
- compare rdate to date, not to today
2013-02-10 02:17:54 +01:00
Romain Bignon
63dc4e05da
support empty dates for transactions
2013-02-08 14:46:01 +01:00
Romain Bignon
78a5c3767f
fix compatibility with python2.6
2013-01-16 17:50:29 +01:00
Romain Bignon
a8b1c5ed5b
if both credit and debit are empty, set value to 0
2013-01-07 23:03:34 +01:00
Romain Bignon
d91dad2b2b
support currencies
2012-12-06 13:21:13 +01:00
Romain Bignon
a7c024e3bc
strip EUR from amount strings
2012-07-31 16:48:52 +02:00
Romain Bignon
7ee2d29792
clean_amount is now a class method
2012-07-02 14:00:36 +02:00
Romain Bignon
7cf060a5f6
add a check if the year is on two digits
2012-06-27 16:37:03 +02:00
Romain Bignon
1cd27395de
check if matched arguments in transactions are not None
2012-05-31 13:40:57 +02:00
Romain Bignon
c4ad0e705e
credit isn't necessarily a positive amount
2012-04-10 10:40:56 +02:00
Romain Bignon
7559a4c93d
strip all kind of spaces, check decimal values signs
2012-04-09 11:23:13 +02:00
Gabriel Kerneis
ee59891f62
boursorama: parse categories and date
2012-04-01 14:30:13 +02:00
Gabriel Kerneis
0f6393e642
bank: add a 'category' group in patterns
2012-04-01 11:23:35 +02:00
Romain Bignon
b157e92d5b
use decimal.Decimal instead of float to store amounts of money
2012-03-29 16:31:18 +02:00
Romain Bignon
c6a141595c
change way to describe fields of CapBaseObject, and lot of documentation
2012-03-26 14:35:54 +02:00
Romain Bignon
2675510f32
add a class FrenchTransaction to factorize common parsing of french banks
2012-03-22 16:33:05 +01:00