- Jul 11, 2017
-
-
Laurent Bachelier authored
-
Laurent Bachelier authored
Always run Python scripts through the same interpreter. Also simplify the running of pyflakes and flake8, as recent versions all support execution through python -m. Due do the many variations among distributions, it makes the whole thing much simpler.
-
- Jul 09, 2017
-
-
hydrargyrum authored
Revert some part of 34f05a00, it doesn't work in Python2.
-
hydrargyrum authored
-
- Jul 08, 2017
-
-
hydrargyrum authored
-
hydrargyrum authored
-
hydrargyrum authored
-
hydrargyrum authored
-
hydrargyrum authored
Backend.fillobj sets a field to NotAvailable if it's not complete. Always returning False in __iscomplete__ prevents the field from ever working with fillobj. Since the StreamInfo is volatile, it's not just the StreamInfo's fields which should be reloaded with fillobj, it should rather be the whole StreamInfo object (or its container, e.g. Radio).
-
Romain Bignon authored
-
object.__new__ only takes one argument: the class to construct. It accepts more arguments only if __init__ is not overloaded, but it is overloaded in Abstract*'s parent classes, so don't pass more args. In Python 2, it was just deprecated, in Python 3, it doesn't work.
-
The certificate changed and NSS doesn't always seem to accept it, force it. A previous patch on regular bred website added "coming" argument to get_history, which didn't exist, so add it.
-
When using dir() to find URL fields, we also checked @properties, which can access other fields that are not defined yet. Exclude them since they probably won't be URLs anyway.
-
those are now on the card account
-
The weboob arg should now be passed as a kwarg, this avoids passing multiple times the weboob as positional argument in case of multiple AbstractBrowser.
-
Creating a new type on-the-fly prevents from using isinstance, super and more. We can get rid of this by changing the class hierarchy dynamically. Also, the modules should now pass the Ouiboube instance as a keyword-argument to the Browser, so the arguments do not have to be modified between __new__ and __init__.
-
The use of metaclass is not required for constructing the dict of URLs. Plus, it prevents changing the class hierarchy at runtime, which could be an improvement for AbstractBrowser.
-
-
-
-
-
The "index" of the card can only be found in an history page, and same for the balance. For the summary transactions, we used to search them in the checking account and dispatch to the card account, but with multiple cards, it doesn't fit, so we generate a transaction directly.
-
Romain Bignon authored
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Coming transactions have a random id (uuid), so the id should not be parsed. And they should be separated from history.
-
-
-
-