paypal: Start support for multiple currencies

For now, ignore everything that is not the primary, and do not use the
converted total.

This is based on http://i.imgur.com/TNcLbPB.jpg
as I have 0 in all currencies for now.
This commit is contained in:
Laurent Bachelier 2013-02-04 16:31:27 +01:00
commit 6e7599d4e3
3 changed files with 30 additions and 8 deletions

View file

@ -47,7 +47,8 @@ class PaypalBackend(BaseBackend, ICapBank):
self.config['password'].get())
def iter_accounts(self):
yield self.get_account(u"1")
for account in self.browser.get_accounts():
yield account
def get_account(self, _id):
with self.browser: