Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -28,6 +28,7 @@ from weboob.tools.ordereddict import OrderedDict
|
|||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
|
||||
class LoginPage(BasePage):
|
||||
def login(self, login, passwd):
|
||||
self.browser.select_form(nr=0)
|
||||
|
|
@ -35,25 +36,32 @@ class LoginPage(BasePage):
|
|||
self.browser['_cm_pwd'] = passwd
|
||||
self.browser.submit(nologin=True)
|
||||
|
||||
|
||||
class LoginErrorPage(BasePage):
|
||||
pass
|
||||
|
||||
|
||||
class ChangePasswordPage(BasePage):
|
||||
def on_loaded(self):
|
||||
raise BrowserIncorrectPassword('Please change your password')
|
||||
|
||||
|
||||
class InfoPage(BasePage):
|
||||
pass
|
||||
|
||||
|
||||
class EmptyPage(BasePage):
|
||||
pass
|
||||
|
||||
|
||||
class TransfertPage(BasePage):
|
||||
pass
|
||||
|
||||
|
||||
class UserSpacePage(BasePage):
|
||||
pass
|
||||
|
||||
|
||||
class AccountsPage(BasePage):
|
||||
def get_list(self):
|
||||
accounts = OrderedDict()
|
||||
|
|
@ -102,6 +110,7 @@ class AccountsPage(BasePage):
|
|||
|
||||
return accounts.itervalues()
|
||||
|
||||
|
||||
class Transaction(FrenchTransaction):
|
||||
PATTERNS = [(re.compile('^VIR(EMENT)? (?P<text>.*)'), FrenchTransaction.TYPE_TRANSFER),
|
||||
(re.compile('^PRLV (?P<text>.*)'), FrenchTransaction.TYPE_ORDER),
|
||||
|
|
@ -116,6 +125,7 @@ class Transaction(FrenchTransaction):
|
|||
|
||||
_is_coming = False
|
||||
|
||||
|
||||
class OperationsPage(BasePage):
|
||||
def get_history(self):
|
||||
index = 0
|
||||
|
|
@ -181,6 +191,7 @@ class OperationsPage(BasePage):
|
|||
|
||||
return True
|
||||
|
||||
|
||||
class CardPage(OperationsPage):
|
||||
def get_history(self):
|
||||
index = 0
|
||||
|
|
@ -200,6 +211,7 @@ class CardPage(OperationsPage):
|
|||
tr.set_amount(tds[-1].text)
|
||||
yield tr
|
||||
|
||||
|
||||
class NoOperationsPage(OperationsPage):
|
||||
def get_history(self):
|
||||
return iter([])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue