Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
177
Issues
177
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
cd783cd9
Commit
cd783cd9
authored
Jul 09, 2019
by
Quentin Defenouillere
Committed by
Vincent A
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ganassurances] Cosmetic changes
parent
e2ed74f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
modules/ganassurances/browser.py
modules/ganassurances/browser.py
+3
-3
modules/ganassurances/module.py
modules/ganassurances/module.py
+9
-6
No files found.
modules/ganassurances/browser.py
View file @
cd783cd9
# -*- coding: utf-8 -*-
# Copyright(C) 2012
Romain Bignon
# Copyright(C) 2012
-2019 Budget Insight
#
# This file is part of a weboob module.
#
...
...
@@ -23,12 +23,12 @@ import re
from
weboob.browser
import
AbstractBrowser
class
GanAssurances
(
AbstractBrowser
):
class
GanAssurances
Browser
(
AbstractBrowser
):
PARENT
=
'groupama'
PARENT_ATTR
=
'package.browser.GroupamaBrowser'
def
__init__
(
self
,
website
,
*
args
,
**
kwargs
):
super
(
GanAssurances
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
super
(
GanAssurances
Browser
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
BASEURL
=
'https://
%
s'
%
website
self
.
website
=
re
.
findall
(
'espaceclient.(.*?).fr'
,
self
.
BASEURL
)[
0
]
modules/ganassurances/module.py
View file @
cd783cd9
...
...
@@ -26,7 +26,7 @@ from weboob.capabilities.bank import CapBank
from
weboob.tools.backend
import
AbstractModule
,
BackendConfig
from
weboob.tools.value
import
ValueBackendPassword
,
Value
from
.browser
import
GanAssurances
from
.browser
import
GanAssurances
Browser
__all__
=
[
'GanAssurancesModule'
]
...
...
@@ -49,11 +49,14 @@ class GanAssurancesModule(AbstractModule, CapBank):
ValueBackendPassword
(
'login'
,
label
=
'Identifiant / N° Client ou Email ou Mobile'
,
masked
=
False
),
ValueBackendPassword
(
'password'
,
label
=
'Mon mot de passe'
,
regexp
=
r'^\d+$'
)
)
BROWSER
=
GanAssurances
PARENT
=
'groupama'
BROWSER
=
GanAssurancesBrowser
def
create_default_browser
(
self
):
return
self
.
create_browser
(
self
.
config
[
'website'
]
.
get
(),
self
.
config
[
'login'
]
.
get
(),
self
.
config
[
'password'
]
.
get
(),
weboob
=
self
.
weboob
)
return
self
.
create_browser
(
self
.
config
[
'website'
]
.
get
(),
self
.
config
[
'login'
]
.
get
(),
self
.
config
[
'password'
]
.
get
(),
weboob
=
self
.
weboob
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment