From 8f282c9ae866ea37fe2dc958c16bcf4a6d5b9e86 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 23 Mar 2012 17:06:41 +0100 Subject: [PATCH] rename iter_operations to iter_coming --- modules/bnporc/backend.py | 2 +- modules/bnporc/test.py | 2 +- modules/boursorama/backend.py | 9 +++++---- modules/boursorama/test.py | 2 +- modules/creditmutuel/backend.py | 2 +- modules/ing/backend.py | 9 +++++---- modules/ing/test.py | 2 +- modules/lcl/backend.py | 2 +- modules/societegenerale/test.py | 2 +- weboob/applications/boobank/boobank.py | 2 +- 10 files changed, 18 insertions(+), 16 deletions(-) diff --git a/modules/bnporc/backend.py b/modules/bnporc/backend.py index c835b47ef1..1302cab8bf 100644 --- a/modules/bnporc/backend.py +++ b/modules/bnporc/backend.py @@ -90,7 +90,7 @@ def iter_history(self, account): with self.browser: return self.browser.iter_history(account._link_id) - def iter_operations(self, account): + def iter_coming(self, account): with self.browser: return self.browser.iter_coming_operations(account._link_id) diff --git a/modules/bnporc/test.py b/modules/bnporc/test.py index a3356944c9..7c965ec40b 100644 --- a/modules/bnporc/test.py +++ b/modules/bnporc/test.py @@ -29,7 +29,7 @@ def test_bank(self): l = list(self.backend.iter_accounts()) if len(l) > 0: a = l[0] - list(self.backend.iter_operations(a)) + list(self.backend.iter_coming(a)) list(self.backend.iter_history(a)) def test_msgs(self): diff --git a/modules/boursorama/backend.py b/modules/boursorama/backend.py index b5c1106769..f8ec897424 100644 --- a/modules/boursorama/backend.py +++ b/modules/boursorama/backend.py @@ -66,7 +66,8 @@ def iter_history(self, account): for history in self.browser.get_history(account): yield history - def iter_operations(self, account): - with self.browser: - for coming in self.browser.get_coming_operations(account): - yield coming + # TODO + #def iter_coming(self, account): + # with self.browser: + # for coming in self.browser.get_coming_operations(account): + # yield coming diff --git a/modules/boursorama/test.py b/modules/boursorama/test.py index 96266b7127..667b3210cf 100644 --- a/modules/boursorama/test.py +++ b/modules/boursorama/test.py @@ -28,5 +28,5 @@ def test_boursorama(self): l = list(self.backend.iter_accounts()) if len(l) > 0: a = l[0] - list(self.backend.iter_operations(a)) + list(self.backend.iter_coming(a)) list(self.backend.iter_history(a)) diff --git a/modules/creditmutuel/backend.py b/modules/creditmutuel/backend.py index dfa2444993..82ec49bc9e 100644 --- a/modules/creditmutuel/backend.py +++ b/modules/creditmutuel/backend.py @@ -56,7 +56,7 @@ def get_account(self, _id): else: raise AccountNotFound() - def iter_operations(self, account): + def iter_coming(self, account): """ TODO Not supported yet """ return iter([]) diff --git a/modules/ing/backend.py b/modules/ing/backend.py index 5313cf79ee..baf1b7013a 100644 --- a/modules/ing/backend.py +++ b/modules/ing/backend.py @@ -75,7 +75,8 @@ def iter_history(self, account): for history in self.browser.get_history(account.id): yield history - def iter_operations(self, account): - with self.browser: - for coming in self.browser.get_coming_operations(account.id): - yield coming + # TODO + #def iter_coming(self, account): + # with self.browser: + # for coming in self.browser.get_coming_operations(account.id): + # yield coming diff --git a/modules/ing/test.py b/modules/ing/test.py index 39df82f9eb..ab420203f1 100644 --- a/modules/ing/test.py +++ b/modules/ing/test.py @@ -28,5 +28,5 @@ def test_ing(self): l = list(self.backend.iter_accounts()) if len(l) > 0: a = l[0] - list(self.backend.iter_operations(a)) + list(self.backend.iter_coming(a)) list(self.backend.iter_history(a)) diff --git a/modules/lcl/backend.py b/modules/lcl/backend.py index 16e30d5ef5..e367a740d3 100644 --- a/modules/lcl/backend.py +++ b/modules/lcl/backend.py @@ -59,7 +59,7 @@ def get_account(self, _id): else: raise AccountNotFound() - def iter_operations(self, account): + def iter_coming(self, account): """ TODO Not supported yet """ return iter([]) diff --git a/modules/societegenerale/test.py b/modules/societegenerale/test.py index 344093dc23..6c832af2ad 100644 --- a/modules/societegenerale/test.py +++ b/modules/societegenerale/test.py @@ -28,5 +28,5 @@ def test_societegenerale(self): self.assertTrue(len(l) > 0) #if len(l) > 0: # a = l[0] - # list(self.backend.iter_operations(a)) + # list(self.backend.iter_coming(a)) # list(self.backend.iter_history(a)) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index 06edd50e11..ef0786a42a 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -238,7 +238,7 @@ def do_coming(self, id): def do(backend): account = backend.get_account(id) - return backend.iter_operations(account) + return backend.iter_coming(account) for backend, operation in self.do(do, backends=names): self.format(operation) -- GitLab