From 509f8c15df598fd39b646e6a3bb9846107fb8fe2 Mon Sep 17 00:00:00 2001 From: Edouard Lambert Date: Tue, 4 Aug 2020 17:04:50 +0200 Subject: [PATCH] [societegenerale] add transaction_klass to get it from stet module Also boursorama --- modules/boursorama/pages.py | 6 ++++++ modules/societegenerale/pages/accounts_list.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index f491c3a8e4..11e1cbb744 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -597,6 +597,12 @@ def inner(page, *args, **kwargs): class HistoryPage(LoggedPage, HTMLPage): + """ + be carefull : `transaction_klass` is used in another page + of an another module which is an abstract of this page + """ + transaction_klass = Transaction + @otp_pagination @method class iter_history(ListElement): diff --git a/modules/societegenerale/pages/accounts_list.py b/modules/societegenerale/pages/accounts_list.py index 37caaa4f19..90cd50e628 100644 --- a/modules/societegenerale/pages/accounts_list.py +++ b/modules/societegenerale/pages/accounts_list.py @@ -473,6 +473,12 @@ def obj_vdate(self): class HistoryPage(JsonBasePage): + """ + be carefull : `transaction_klass` is used in another page + of an another module which is an abstract of this page + """ + transaction_klass = Transaction + def hist_pagination(self, condition): all_conditions = { 'history': ( -- GitLab