From f645e2fef986413686d114339701c54aea9a864d Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 31 Oct 2012 15:00:52 +0100 Subject: [PATCH] Fix iter_ressources --- modules/ing/backend.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/ing/backend.py b/modules/ing/backend.py index a7e68712..ce90d78e 100644 --- a/modules/ing/backend.py +++ b/modules/ing/backend.py @@ -56,6 +56,15 @@ class INGBackend(BaseBackend, ICapBank, ICapBill): self.config['password'].get(), birthday=self.config['birthday'].get()) + + def iter_resources(self, objs, split_path): + if Account in objs: + self._restrict_level(split_path) + return self.iter_accounts() + if Subscription in objs: + self._restrict_level(split_path) + return self.iter_subscription() + def iter_accounts(self): for account in self.browser.get_accounts_list(): yield account