[weboob] [PATCH 4/4] [ameli] details isn't implemented: remove dummy code

Pierre-Louis Bonicoli pierre-louis.bonicoli at gmx.fr
Sun Jul 26 02:07:11 CEST 2015


Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli at gmx.fr>
---
 modules/ameli/browser.py | 10 ----------
 modules/ameli/module.py  |  5 -----
 2 files changed, 15 deletions(-)

diff --git a/modules/ameli/browser.py b/modules/ameli/browser.py
index 6c5b47b..ac7fadc 100644
--- a/modules/ameli/browser.py
+++ b/modules/ameli/browser.py
@@ -89,16 +89,6 @@ class AmeliBrowser(LoginBrowser):
                 yield payment
 
     @need_login
-    def iter_details(self, sub):
-        self.logger.debug('call Browser.iter_details')
-        det = Detail()
-        det.id = sub.id
-        det.label = sub.label
-        det.infos = ''
-        det.price = Decimal('0.0')
-        yield det
-
-    @need_login
     def iter_bills(self, sub):
         self.logger.debug('call Browser.iter_bills')
         if not sub._id.isdigit():
diff --git a/modules/ameli/module.py b/modules/ameli/module.py
index 8671e62..d7363b4 100644
--- a/modules/ameli/module.py
+++ b/modules/ameli/module.py
@@ -60,11 +60,6 @@ class AmeliModule(Module, CapBill):
             subscription = self.get_subscription(subscription)
         return self.browser.iter_history(subscription)
 
-    def get_details(self, subscription):
-        if not isinstance(subscription, Subscription):
-            subscription = self.get_subscription(subscription)
-        return self.browser.iter_details(subscription)
-
     def iter_bills(self, subscription):
         if not isinstance(subscription, Subscription):
             subscription = self.get_subscription(subscription)
-- 
2.1.4




More information about the weboob mailing list