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

Commit c4a87b34 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

add CapBankWealth and CapBankPockets in bank.py

update CapBank into CapbankWealth when iter_investments is implemented
update CapBank into CapbankPockets when iter_pockets is implemented
add CapBankWealth when iter_investments is implemented and inherit CapCgp or CapBankTransfer or CapBankTransferAddRecipient
add CapBankPockets when iter_pockets is implemented and inherit CapCgp or CapBankTransfer or CapBankTransferAddRecipient
parent 87a71e3d
......@@ -19,7 +19,7 @@
from weboob.capabilities.base import find_object
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
......@@ -29,7 +29,7 @@
__all__ = ['AferModule']
class AferModule(Module, CapBank):
class AferModule(Module, CapBankWealth):
NAME = 'afer'
DESCRIPTION = u'afer website'
MAINTAINER = u'James GALT'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword, Value
......@@ -28,7 +28,7 @@
__all__ = ['AmundiModule']
class AmundiModule(Module, CapBank):
class AmundiModule(Module, CapBankWealth):
NAME = 'amundi'
DESCRIPTION = u'amundi website'
MAINTAINER = u'James GALT'
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank
from weboob.capabilities.bank import CapBankWealth
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
......@@ -27,7 +27,7 @@
__all__ = ['ApivieModule']
class ApivieModule(Module, CapBank):
class ApivieModule(Module, CapBankWealth):
NAME = 'apivie'
DESCRIPTION = u'Apivie'
MAINTAINER = u'Romain Bignon'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object, NotAvailable
from weboob.capabilities.bank import Account
from weboob.capabilities.bill import CapDocument, Subscription, Document, DocumentNotFound, SubscriptionNotFound
......@@ -31,7 +31,7 @@
__all__ = ['AXABanqueModule']
class AXABanqueModule(Module, CapBank, CapDocument):
class AXABanqueModule(Module, CapBankWealth, CapDocument):
NAME = 'axabanque'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -20,7 +20,7 @@
from collections import OrderedDict
from functools import reduce
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.contact import CapContact
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword, Value
......@@ -31,7 +31,7 @@
__all__ = ['BanquePopulaireModule']
class BanquePopulaireModule(Module, CapBank, CapContact):
class BanquePopulaireModule(Module, CapBankWealth, CapContact):
NAME = 'banquepopulaire'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -20,7 +20,7 @@
from __future__ import unicode_literals
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.base import find_object
......@@ -31,7 +31,7 @@
__all__ = ['BarclaysModule']
class BarclaysModule(Module, CapBank):
class BarclaysModule(Module, CapBankWealth):
NAME = 'barclays'
MAINTAINER = u'Jean Walrave'
EMAIL = 'jwalrave@budget-insight.com'
......
......@@ -19,7 +19,7 @@
from weboob.tools.backend import Module, BackendConfig
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from weboob.tools.value import ValueBackendPassword, ValueDate
from .browser import BforbankBrowser
......@@ -28,7 +28,7 @@
__all__ = ['BforbankModule']
class BforbankModule(Module, CapBank):
class BforbankModule(Module, CapBankWealth):
NAME = 'bforbank'
DESCRIPTION = u'BforBank'
MAINTAINER = u'Baptiste Delpey'
......
......@@ -23,7 +23,7 @@
from datetime import datetime, timedelta
from weboob.capabilities.bank import (
CapBankTransferAddRecipient, AccountNotFound, Account, TransferError, RecipientNotFound,
CapBankWealth, CapBankTransferAddRecipient, AccountNotFound, Account, TransferError, RecipientNotFound,
TransferInvalidLabel,
)
from weboob.capabilities.messages import CapMessages, Thread
......@@ -41,7 +41,7 @@
__all__ = ['BNPorcModule']
class BNPorcModule(Module, CapBankTransferAddRecipient, CapMessages, CapContact, CapProfile):
class BNPorcModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapMessages, CapContact, CapProfile):
NAME = 'bnporc'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -20,7 +20,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBankTransferAddRecipient, Account, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, Account, AccountNotFound
from weboob.capabilities.profile import CapProfile
from weboob.capabilities.contact import CapContact
from weboob.tools.backend import Module, BackendConfig
......@@ -32,7 +32,7 @@
__all__ = ['BoursoramaModule']
class BoursoramaModule(Module, CapBankTransferAddRecipient, CapProfile, CapContact):
class BoursoramaModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapProfile, CapContact):
NAME = 'boursorama'
MAINTAINER = u'Gabriel Kerneis'
EMAIL = 'gabriel@kerneis.info'
......
......@@ -19,7 +19,7 @@
from decimal import Decimal
from weboob.capabilities.bank import CapBankTransferAddRecipient, Account, AccountNotFound, RecipientNotFound, TransferError
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, Account, AccountNotFound, RecipientNotFound, TransferError
from weboob.capabilities.contact import CapContact
from weboob.capabilities.base import find_object
from weboob.tools.backend import Module, BackendConfig
......@@ -31,7 +31,7 @@
__all__ = ['BPModule']
class BPModule(Module, CapBankTransferAddRecipient, CapContact):
class BPModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact):
NAME = 'bp'
MAINTAINER = u'Nicolas Duhamel'
EMAIL = 'nicolas@jombi.fr'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
......@@ -29,7 +29,7 @@
__all__ = ['CaelsModule']
class CaelsModule(Module, CapBank):
class CaelsModule(Module, CapBankWealth):
NAME = 'caels'
DESCRIPTION = u'Crédit Agricole - Epargne Longue des Salariés'
MAINTAINER = u'Edouard Lambert'
......
......@@ -21,7 +21,7 @@
from functools import wraps
import re
from weboob.capabilities.bank import CapBankTransferAddRecipient, AccountNotFound, Account, RecipientNotFound
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, AccountNotFound, Account, RecipientNotFound
from weboob.capabilities.contact import CapContact
from weboob.capabilities.profile import CapProfile
from weboob.capabilities.base import find_object
......@@ -66,7 +66,7 @@ def wrapper(self, *args, **kwargs):
return wrapper
class CaisseEpargneModule(Module, CapBankTransferAddRecipient, CapContact, CapProfile):
class CaisseEpargneModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact, CapProfile):
NAME = 'caissedepargne'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -19,7 +19,7 @@
from weboob.capabilities.base import find_object
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
......@@ -29,7 +29,7 @@
__all__ = ['CarrefourBanqueModule']
class CarrefourBanqueModule(Module, CapBank):
class CarrefourBanqueModule(Module, CapBankWealth):
NAME = 'carrefourbanque'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -20,7 +20,7 @@
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from .browser import CmesBrowser
......@@ -29,7 +29,7 @@
__all__ = ['CicesModule']
class CicesModule(Module, CapBank):
class CicesModule(Module, CapBankWealth):
NAME = 'cices'
DESCRIPTION = u'CIC Épargne Salariale'
MAINTAINER = u'Edouard Lambert'
......
......@@ -20,7 +20,7 @@
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from .browser import CmesBrowser
......@@ -29,7 +29,7 @@
__all__ = ['CmesModule']
class CmesModule(Module, CapBank):
class CmesModule(Module, CapBankWealth):
NAME = 'cmes'
DESCRIPTION = u'Crédit Mutuel Épargne Salariale'
MAINTAINER = u'Edouard Lambert'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.contact import CapContact
from weboob.capabilities.base import find_object
from weboob.tools.backend import Module, BackendConfig
......@@ -31,7 +31,7 @@
__all__ = ['CmsoModule']
class CmsoModule(Module, CapBank, CapContact):
class CmsoModule(Module, CapBankWealth, CapContact):
NAME = 'cmso'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -22,7 +22,7 @@
import re
from weboob.capabilities.base import find_object
from weboob.capabilities.bank import Account, AccountNotFound, CapBankTransferAddRecipient
from weboob.capabilities.bank import Account, AccountNotFound, CapBankWealth, CapBankTransferAddRecipient
from weboob.capabilities.contact import CapContact
from weboob.capabilities.profile import CapProfile
from weboob.tools.backend import Module, BackendConfig
......@@ -34,7 +34,7 @@
__all__ = ['CragrModule']
class CragrModule(Module, CapBankTransferAddRecipient, CapContact, CapProfile):
class CragrModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact, CapProfile):
NAME = 'cragr'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -19,7 +19,7 @@
from collections import OrderedDict
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.profile import CapProfile
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword, Value
......@@ -30,7 +30,7 @@
__all__ = ['CreditDuNordModule']
class CreditDuNordModule(Module, CapBank, CapProfile):
class CreditDuNordModule(Module, CapBankWealth, CapProfile):
NAME = 'creditdunord'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -21,7 +21,7 @@
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.bank import CapBank
from weboob.capabilities.bank import CapBankWealth
from .browser import CreditdunordpeeBrowser
......@@ -29,7 +29,7 @@
__all__ = ['CreditdunordpeeModule']
class CreditdunordpeeModule(Module, CapBank):
class CreditdunordpeeModule(Module, CapBankWealth):
NAME = 'creditdunordpee'
DESCRIPTION = u'Site de gestion du PEE du groupe Credit du nord'
MAINTAINER = u'Bezleputh'
......
......@@ -22,7 +22,7 @@
from decimal import Decimal
from weboob.capabilities.base import find_object
from weboob.capabilities.bank import CapBankTransferAddRecipient, AccountNotFound, RecipientNotFound, \
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, AccountNotFound, RecipientNotFound, \
Account, TransferError
from weboob.capabilities.contact import CapContact
from weboob.capabilities.profile import CapProfile
......@@ -35,7 +35,7 @@
__all__ = ['CreditMutuelModule']
class CreditMutuelModule(Module, CapBankTransferAddRecipient, CapContact, CapProfile):
class CreditMutuelModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact, CapProfile):
NAME = 'creditmutuel'
MAINTAINER = u'Julien Veyssier'
EMAIL = 'julien.veyssier@aiur.fr'
......
......@@ -19,7 +19,7 @@
from weboob.capabilities.base import find_object
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
......@@ -29,7 +29,7 @@
__all__ = ['FortuneoModule']
class FortuneoModule(Module, CapBank):
class FortuneoModule(Module, CapBankWealth):
NAME = 'fortuneo'
MAINTAINER = u'Gilles-Alexandre Quenot'
EMAIL = 'gilles.quenot@gmail.com'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import Value, ValueBackendPassword
......@@ -29,7 +29,7 @@
__all__ = ['GroupamaModule']
class GroupamaModule(Module, CapBank):
class GroupamaModule(Module, CapBankWealth):
NAME = 'groupama'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankPockets, AccountNotFound
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.base import find_object
......@@ -28,7 +28,7 @@
__all__ = ['GroupamaesModule']
class GroupamaesModule(Module, CapBank):
class GroupamaesModule(Module, CapBankPockets):
NAME = 'groupamaes'
DESCRIPTION = u"Groupama Épargne Salariale"
MAINTAINER = u'Bezleputh'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword, Value
......@@ -29,7 +29,7 @@
__all__ = ['HSBCModule']
class HSBCModule(Module, CapBank):
class HSBCModule(Module, CapBankWealth):
NAME = 'hsbc'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -20,7 +20,7 @@
import re
from datetime import timedelta
from weboob.capabilities.bank import CapBankTransfer, Account, AccountNotFound, RecipientNotFound
from weboob.capabilities.bank import CapBankWealth, CapBankTransfer, Account, AccountNotFound, RecipientNotFound
from weboob.capabilities.bill import CapDocument, Bill, Subscription,\
SubscriptionNotFound, DocumentNotFound
from weboob.capabilities.profile import CapProfile
......@@ -34,7 +34,7 @@
__all__ = ['INGModule']
class INGModule(Module, CapBankTransfer, CapDocument, CapProfile):
class INGModule(Module, CapBankWealth, CapBankTransfer, CapDocument, CapProfile):
NAME = 'ing'
MAINTAINER = u'Florent Fourcot'
EMAIL = 'weboob@flo.fourcot.fr'
......
......@@ -22,7 +22,7 @@
from functools import wraps
import re
from weboob.capabilities.bank import CapBankTransferAddRecipient, AccountNotFound, \
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, AccountNotFound, \
RecipientNotFound, TransferError, Account
from weboob.capabilities.bill import CapDocument, Subscription, SubscriptionNotFound, \
Document, DocumentNotFound
......@@ -53,7 +53,7 @@ def wrapper(self, *args, **kwargs):
return decorator
class LCLModule(Module, CapBankTransferAddRecipient, CapContact, CapProfile, CapDocument):
class LCLModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact, CapProfile, CapDocument):
NAME = 'lcl'
MAINTAINER = u'Romain Bignon'
EMAIL = 'romain@weboob.org'
......
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.base import find_object
......@@ -29,7 +29,7 @@
__all__ = ['PradoepargneModule']
class PradoepargneModule(Module, CapBank):
class PradoepargneModule(Module, CapBankWealth):
NAME = 'pradoepargne'
DESCRIPTION = u'Prado Épargne Salariale'
MAINTAINER = u'Edouard Lambert'
......
......@@ -19,11 +19,11 @@
from weboob.tools.backend import Module
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankPockets, AccountNotFound
from weboob.capabilities.base import find_object
class S2eModule(Module, CapBank):
class S2eModule(Module, CapBankPockets):
NAME = 's2e'
DESCRIPTION = u'Épargne Salariale'
MAINTAINER = u'Edouard Lambert'
......
......@@ -22,7 +22,7 @@
from decimal import Decimal
from datetime import timedelta
from weboob.capabilities.bank import CapBankTransferAddRecipient, AccountNotFound, Account, RecipientNotFound
from weboob.capabilities.bank import CapBankWealth, CapBankTransferAddRecipient, AccountNotFound, Account, RecipientNotFound
from weboob.capabilities.contact import CapContact
from weboob.capabilities.profile import CapProfile
from weboob.tools.backend import Module, BackendConfig
......@@ -36,7 +36,7 @@
__all__ = ['SocieteGeneraleModule']
class SocieteGeneraleModule(Module, CapBankTransferAddRecipient, CapContact, CapProfile):
class SocieteGeneraleModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact, CapProfile):
NAME = 'societegenerale'
MAINTAINER = u'Jocelyn Jaubert'
EMAIL = 'jocelyn.jaubert@gmail.com'
......
......@@ -20,7 +20,7 @@
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from .browser import SpiricaBrowser
......@@ -29,7 +29,7 @@
__all__ = ['SpiricaModule']
class SpiricaModule(Module, CapBank):
class SpiricaModule(Module, CapBankWealth):
NAME = 'spirica'
DESCRIPTION = u'Spirica'
MAINTAINER = u'Edouard Lambert'
......
......@@ -20,7 +20,7 @@
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.bank import CapBank, AccountNotFound
from weboob.capabilities.bank import CapBankWealth, AccountNotFound
from weboob.capabilities.base import find_object
from .browser import YomoniBrowser
......@@ -29,7 +29,7 @@
__all__ = ['YomoniModule']
class YomoniModule(Module, CapBank):
class YomoniModule(Module, CapBankWealth):
NAME = 'yomoni'
DESCRIPTION = u'Yomoni'
MAINTAINER = u'Edouard Lambert'
......
......@@ -510,6 +510,18 @@ def iter_coming(self, account):
"""
raise NotImplementedError()
class CapCgp(CapBank):
"""
Capability of cgp website to see accounts and transactions.
"""
class CapBankWealth(CapBank):
"""
Capability of bank websites to see investment.
"""
def iter_investment(self, account):
"""
Iter investment of a market account
......@@ -521,6 +533,12 @@ def iter_investment(self, account):
"""
raise NotImplementedError()
class CapBankPockets(CapBankWealth):
"""
Capability of bank websites to see pockets.
"""
def iter_pocket(self, account):
"""
Iter pocket
......@@ -533,12 +551,6 @@ def iter_pocket(self, account):
raise NotImplementedError()
class CapCgp(CapBank):
"""
Capability of cgp website to see accounts and transactions.
"""
class CapBankTransfer(CapBank):
def iter_transfer_recipients(self, account):
"""
......
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