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
cdc8c4e5
Commit
cdc8c4e5
authored
Apr 14, 2019
by
Vincent A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bolden] retype lend documents and add fiscal docs
parent
5d56fa79
Pipeline
#2220
canceled with stages
Changes
3
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
modules/bolden/browser.py
modules/bolden/browser.py
+5
-1
modules/bolden/module.py
modules/bolden/module.py
+0
-1
modules/bolden/pages.py
modules/bolden/pages.py
+17
-2
No files found.
modules/bolden/browser.py
View file @
cdc8c4e5
...
...
@@ -97,6 +97,10 @@ class BoldenBrowser(LoginBrowser):
doc
.
id
=
inv
.
id
doc
.
url
=
inv
.
_docurl
doc
.
label
=
'Contrat
%
s'
%
inv
.
label
doc
.
type
=
DocumentTypes
.
OTHER
doc
.
type
=
DocumentTypes
.
CONTRACT
doc
.
format
=
'pdf'
yield
doc
self
.
profile
.
go
()
for
doc
in
self
.
page
.
iter_documents
():
yield
doc
modules/bolden/module.py
View file @
cdc8c4e5
...
...
@@ -19,7 +19,6 @@
from
__future__
import
unicode_literals
from
weboob.tools.backend
import
Module
,
BackendConfig
from
weboob.tools.value
import
ValueBackendPassword
from
weboob.capabilities.bank
import
CapBankWealth
,
Account
...
...
modules/bolden/pages.py
View file @
cdc8c4e5
...
...
@@ -20,14 +20,15 @@
from
__future__
import
unicode_literals
from
weboob.browser.elements
import
ListElement
,
ItemElement
,
method
,
TableElement
from
weboob.browser.filters.html
import
TableCell
,
Link
,
Attr
from
weboob.browser.filters.html
import
TableCell
,
Link
,
Attr
,
AbsoluteLink
from
weboob.browser.filters.standard
import
(
CleanText
,
CleanDecimal
,
Slugify
,
Date
,
Field
,
Format
,
CleanText
,
CleanDecimal
,
Slugify
,
Date
,
Field
,
Format
,
Regexp
,
)
from
weboob.browser.pages
import
HTMLPage
,
LoggedPage
from
weboob.capabilities.base
import
NotAvailable
from
weboob.capabilities.bank
import
Account
,
Transaction
,
Investment
from
weboob.capabilities.profile
import
Profile
from
weboob.capabilities.bill
import
Document
,
DocumentTypes
from
weboob.exceptions
import
BrowserIncorrectPassword
from
weboob.tools.compat
import
urljoin
...
...
@@ -143,3 +144,17 @@ class ProfilePage(LoggedPage, HTMLPage):
Attr
(
'//input[@id="SubModel_Address_City"]'
,
'value'
),
CleanText
(
'//select[@id="SubModel_Address_Country"]/option[@selected]'
),
)
@
method
class
iter_documents
(
ListElement
):
item_xpath
=
'//a[starts-with(@href, "/Upload/Show")]'
class
item
(
ItemElement
):
klass
=
Document
obj_label
=
'Imprimé fiscal unique'
obj_type
=
DocumentTypes
.
REPORT
obj_format
=
'pdf'
obj_url
=
AbsoluteLink
(
'.'
)
obj_id
=
Regexp
(
Field
(
'url'
),
r'fileId=(\d+)'
)
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