cleanup and update AUTHORS

This commit is contained in:
Romain Bignon 2012-11-22 22:19:43 +01:00
commit dfbcda1cac
5 changed files with 41 additions and 44 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright(C) 2012 Kevin Pouget, based on Romain Bignon work
# Copyright(C) 2012 Kevin Pouget
#
# This file is part of weboob.
#
@ -20,7 +20,6 @@
from weboob.capabilities.bank import ICapBank, AccountNotFound
from weboob.tools.backend import BaseBackend, BackendConfig
from weboob.tools.ordereddict import OrderedDict
from weboob.tools.value import ValueBackendPassword, Value
from .browser import CreditCooperatif
@ -36,18 +35,18 @@ class CreditCooperatifBackend(BaseBackend, ICapBank):
VERSION = '0.e'
DESCRIPTION = u'Credit Cooperatif French bank website'
LICENSE = 'AGPLv3+'
auth_type = {"weak" : "Code confidentiel",
auth_type = {"weak" : "Code confidentiel",
"strong": "Sesame"}
CONFIG = BackendConfig(Value('auth_type', label='Authentication type', choices=auth_type, default="strong"),
ValueBackendPassword('login', label='Account ID', masked=False),
ValueBackendPassword('pin', label='One time pin'))
ValueBackendPassword('password', label='Password or one time pin'))
BROWSER = CreditCooperatif
def create_default_browser(self):
return self.create_browser(self.config['login'].get(),
self.config['pin'].get(),
self.config['auth_type'].get() == "strong")
self.config['password'].get(),
strong_auth=self.config['auth_type'].get() == "strong")
def iter_accounts(self):
with self.browser:
@ -65,7 +64,7 @@ class CreditCooperatifBackend(BaseBackend, ICapBank):
def iter_history(self, account):
with self.browser:
return self.browser.get_history(account)
def iter_coming(self, account):
with self.browser:
return self.browser.get_coming(account)