use Value* classes instead of ConfigField
This commit is contained in:
parent
f995d86023
commit
2d2a942494
12 changed files with 59 additions and 72 deletions
|
|
@ -18,10 +18,14 @@
|
|||
|
||||
from weboob.capabilities.bank import ICapBank, AccountNotFound
|
||||
from weboob.tools.backend import BaseBackend
|
||||
from weboob.tools.value import ValuesDict, Value
|
||||
|
||||
from .browser import Cragr
|
||||
|
||||
|
||||
__all__ = ['CragrBackend']
|
||||
|
||||
|
||||
class CragrBackend(BaseBackend, ICapBank):
|
||||
NAME = 'cragr'
|
||||
MAINTAINER = 'Laurent Bachelier'
|
||||
|
|
@ -29,10 +33,9 @@ class CragrBackend(BaseBackend, ICapBank):
|
|||
VERSION = '0.3'
|
||||
DESCRIPTION = 'Credit Agricole french bank\'s website'
|
||||
LICENSE = 'GPLv3'
|
||||
CONFIG = {'login': BaseBackend.ConfigField(description='Account ID'),
|
||||
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
|
||||
'website': BaseBackend.ConfigField(description='What website to use', default='m.lefil.com'),
|
||||
}
|
||||
CONFIG = ValuesDict(Value('website', label='Website to use', default='m.lefil.com'),
|
||||
Value('login', label='Account ID'),
|
||||
Value('password', label='Password', masked=True))
|
||||
BROWSER = Cragr
|
||||
|
||||
def create_default_browser(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue