Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ludovic LANGE
weboob
Commits
8a1b9c94
Commit
8a1b9c94
authored
Aug 17, 2015
by
Baptiste Delpey
Committed by
Romain Bignon
Feb 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sogecartenet better handling of wrongpass
parent
ad15d7fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
browser.py
modules/sogecartenet/browser.py
+0
-3
pages.py
modules/sogecartenet/pages.py
+5
-0
No files found.
modules/sogecartenet/browser.py
View file @
8a1b9c94
...
...
@@ -18,7 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from
weboob.exceptions
import
BrowserIncorrectPassword
from
weboob.browser
import
LoginBrowser
,
URL
,
need_login
from
.pages
import
LoginPage
,
AccountsPage
,
TransactionsPage
...
...
@@ -44,8 +43,6 @@ class SogecartesBrowser(LoginBrowser):
"QUEFAIRE"
:
"LOGIN"
,
}
self
.
login
.
open
(
data
=
data
)
if
self
.
login
.
is_here
():
raise
BrowserIncorrectPassword
()
@
need_login
def
iter_accounts
(
self
):
...
...
modules/sogecartenet/pages.py
View file @
8a1b9c94
...
...
@@ -20,6 +20,7 @@
import
requests
from
weboob.browser.pages
import
HTMLPage
,
CsvPage
,
pagination
from
weboob.exceptions
import
BrowserIncorrectPassword
from
weboob.browser.elements
import
ListElement
,
DictElement
,
ItemElement
,
method
from
weboob.browser.filters.standard
import
CleanText
,
CleanDecimal
,
Date
,
Env
from
weboob.browser.filters.json
import
Dict
...
...
@@ -39,6 +40,10 @@ class SogeLoggedPage(object):
return
not
self
.
doc
.
xpath
(
'//input[@value="LOGIN"][@name="QUEFAIRE"]'
)
return
True
def
on_load
(
self
):
if
hasattr
(
self
.
doc
,
'xpath'
)
and
self
.
doc
.
xpath
(
'//input[@value="LOGIN"][@name="QUEFAIRE"]'
):
raise
BrowserIncorrectPassword
()
class
AccountsPage
(
SogeLoggedPage
,
HTMLPage
):
@
pagination
@
method
...
...
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