remove useless 'inlogin' attribute
This commit is contained in:
parent
9426b9f204
commit
8dc3231d88
1 changed files with 16 additions and 19 deletions
|
|
@ -14,12 +14,16 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
|
|
||||||
|
|
||||||
|
from weboob.tools.browser import BaseBrowser#, BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, CookiePage, AccountList, AccountHistory
|
from .pages import LoginPage, CookiePage, AccountList, AccountHistory
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['BPbrowser']
|
__all__ = ['BPbrowser']
|
||||||
|
|
||||||
|
|
||||||
class BPbrowser(BaseBrowser):
|
class BPbrowser(BaseBrowser):
|
||||||
DOMAIN = 'voscomptesenligne.labanquepostale.fr'
|
DOMAIN = 'voscomptesenligne.labanquepostale.fr'
|
||||||
PROTOCOL = 'https'
|
PROTOCOL = 'https'
|
||||||
|
|
@ -32,25 +36,18 @@ class BPbrowser(BaseBrowser):
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
def __init__(self, *args, **kwargs):
|
|
||||||
self.inlogin = False
|
|
||||||
BaseBrowser.__init__(self, *args, **kwargs)
|
|
||||||
|
|
||||||
def home(self):
|
def home(self):
|
||||||
self.location("https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers")
|
self.location("https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers")
|
||||||
|
|
||||||
def is_logged(self):
|
def is_logged(self):
|
||||||
if self.inlogin:
|
|
||||||
return True
|
|
||||||
return not self.is_on_page(LoginPage)
|
return not self.is_on_page(LoginPage)
|
||||||
|
|
||||||
def login(self):
|
def login(self):
|
||||||
self.inlogin = True
|
|
||||||
if not self.is_on_page(LoginPage):
|
if not self.is_on_page(LoginPage):
|
||||||
self.location('https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers')
|
self.location('https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers', no_login=True)
|
||||||
|
|
||||||
self.page.login(self.username, self.password)
|
self.page.login(self.username, self.password)
|
||||||
self.inlogin = False
|
|
||||||
|
|
||||||
def get_accounts_list(self):
|
def get_accounts_list(self):
|
||||||
self.location("https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/authentification/liste_contrat_atos.ea")
|
self.location("https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/authentification/liste_contrat_atos.ea")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue