introduce new type Account.TYPE_LIKE_INSURANCE
This commit is contained in:
parent
55f8bbcf2e
commit
2f61835521
6 changed files with 8 additions and 6 deletions
|
|
@ -119,7 +119,7 @@ class IngBrowser(LoginBrowser):
|
|||
@need_login
|
||||
@check_bourse
|
||||
def get_history(self, account):
|
||||
if account.type == Account.TYPE_MARKET:
|
||||
if account.type in (Account.TYPE_MARKET, Account.TYPE_LIFE_INSURANCE):
|
||||
for result in self.get_history_titre(account):
|
||||
yield result
|
||||
return
|
||||
|
|
@ -258,7 +258,7 @@ class IngBrowser(LoginBrowser):
|
|||
@need_login
|
||||
@check_bourse
|
||||
def get_investments(self, account):
|
||||
if account.type != Account.TYPE_MARKET:
|
||||
if account.type not in (Account.TYPE_MARKET, Account.TYPE_LIFE_INSURANCE):
|
||||
raise NotImplementedError()
|
||||
self.go_investments(account)
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class AddType(Filter):
|
|||
types = {u'Courant': Account.TYPE_CHECKING, u'Livret A': Account.TYPE_SAVINGS,
|
||||
u'Orange': Account.TYPE_SAVINGS, u'Durable': Account.TYPE_SAVINGS,
|
||||
u'Titres': Account.TYPE_MARKET, u'PEA': Account.TYPE_MARKET,
|
||||
u'Direct Vie': Account.TYPE_MARKET}
|
||||
u'Direct Vie': Account.TYPE_LIFE_INSURANCE}
|
||||
|
||||
def filter(self, label):
|
||||
for key, acc_type in self.types.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue