The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit b70779b6 authored by Nicolas VERGNAC's avatar Nicolas VERGNAC Committed by Vincent A

[cmes] remove useless page

parent b2e11a0e
......@@ -26,7 +26,7 @@
from woob.exceptions import BrowserIncorrectPassword, ActionNeeded
from .pages import (
LoginPage, AccountsPage, OperationsListPage, OperationPage, ActionNeededPage,
InvestmentPage, InvestmentDetailsPage, AssetManagementPage,
InvestmentPage, InvestmentDetailsPage,
)
......@@ -48,12 +48,13 @@ class CmesBrowser(LoginBrowser):
AccountsPage
)
investments = URL(r'(?P<subsite>.*)(?P<client_space>.*)fr/epargnants/supports/fiche-du-support.html', InvestmentPage)
investment_details = URL(r'(?P<subsite>.*)(?P<client_space>.*)fr/epargnants/supports/epargne-sur-le-support.html', InvestmentDetailsPage)
asset_management = URL(
r'https://www.creditmutuel-am.eu/fr/conseillers-gestion-patrimoine/nos-fonds/VALE_FicheSynthese.aspx',
r'https://www.creditmutuel-am.eu/fr/conseillers-gestion-patrimoine/nos-fonds/VALE_Fiche.aspx',
AssetManagementPage
investments = URL(
r'(?P<subsite>.*)(?P<client_space>.*)fr/epargnants/supports/fiche-du-support.html',
InvestmentPage
)
investment_details = URL(
r'(?P<subsite>.*)(?P<client_space>.*)fr/epargnants/supports/epargne-sur-le-support.html',
InvestmentDetailsPage
)
operations_list = URL(r'(?P<subsite>.*)(?P<client_space>.*)fr/epargnants/operations/index.html', OperationsListPage)
......
......@@ -199,38 +199,6 @@ def go_investment_details(self):
self.browser.location(investment_details_url)
class AssetManagementPage(LoggedPage, HTMLPage):
def get_page_params(self):
return {
'forceActualisation': 0,
'ddp': Regexp(CleanText('//script[contains(text(), "window.location.href")]'), 'window.location.href = ".*?ddp=(.*?)"')(self.doc)
}
@method
class fill_investment(ItemElement):
def obj_asset_category(self):
asset_category = Title(CleanText('//th[span[contains(text(),"Catégorie")]]/following-sibling::td//span'))(self)
if asset_category == '-':
return NotAvailable
return asset_category
def obj_performance_history(self):
# Getting cells by th index
performance_xpath = '//table[@id="t_PerformancesEnDate"]/tbody/tr/td[@class="i d " and position()=count(//table[@id="t_PerformancesEnDate"]//th[@id="%s"]/preceding-sibling::th)]'
one_year = CleanDecimal.French(performance_xpath % 'th1an', default=None)(self)
three_years = CleanDecimal.French(performance_xpath % 'th3ans', default=None)(self)
five_years = CleanDecimal.French(performance_xpath % 'th5ans', default=None)(self)
perfs = {}
if one_year:
perfs[1] = one_year / 100
if three_years:
perfs[3] = three_years / 100
if five_years:
perfs[5] = five_years / 100
return perfs
POCKET_CONDITIONS = {
'retraite': Pocket.CONDITION_RETIREMENT,
'disponibilites': Pocket.CONDITION_DATE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment