fix regexp of config
This commit is contained in:
parent
79c7bd9816
commit
d7fa7ce5ae
2 changed files with 3 additions and 3 deletions
|
|
@ -33,9 +33,9 @@ class LCLBackend(BaseBackend, ICapBank):
|
|||
VERSION = '0.4'
|
||||
DESCRIPTION = 'Le Credit Lyonnais crappy french bank'
|
||||
LICENSE = 'GPLv3'
|
||||
CONFIG = ValuesDict(Value('login', label='Account ID'),
|
||||
CONFIG = ValuesDict(Value('login', label='Account ID', regexp='^\d{1,6}\w$'),
|
||||
Value('password', label='Password of account', masked=True),
|
||||
Value('agency', label='Agency code', regexp='^\d{1,3}$'))
|
||||
Value('agency', label='Agency code', regexp='^\d{3,4}$'))
|
||||
BROWSER = LCLBrowser
|
||||
|
||||
def create_default_browser(self):
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class LCLBrowser(BaseBrowser):
|
|||
assert isinstance(self.password, basestring)
|
||||
|
||||
if not self.is_on_page(LoginPage):
|
||||
self.home()
|
||||
self.location('https://particuliers.secure.lcl.fr/', no_login=True)
|
||||
|
||||
self.page.login(self.agency, self.username, self.password)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue