paypal: Proper multi-currency support

An account per currency.
And fix xpath (missing ".").
This commit is contained in:
Laurent Bachelier 2013-02-04 18:11:06 +01:00
commit 395d7e5e5d
3 changed files with 45 additions and 20 deletions

View file

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