The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 59b626fb authored by Damien Mat's avatar Damien Mat Committed by Vincent A

[caissedepargne] add get_cdetab method

cdetab (and connection_type) is set in do_api_pre_login method
but we might want to use it for the sole purpose of getting cdetab,
notably in other modules using this one.
parent f8ed3de4
......@@ -271,6 +271,11 @@ def do_api_pre_login(self):
self.cdetab = self.page.get_cdetab()
self.connection_type = self.page.get_connection_type()
def get_cdetab(self):
if not self.cdetab:
self.do_api_pre_login() # this sets cdetab
return self.cdetab
def get_connection_data(self):
"""
Attempt to log in.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment