Remove useless __all__ in modules
They bring nothing of value (we never use import * anyway) and introduce a maintenance burden. The __all__ that I left might not be very useful either but at least they are not a pain to maintain; they are also used by pyflakes in some cases.
This commit is contained in:
parent
174b5674c1
commit
3da02fde24
206 changed files with 0 additions and 575 deletions
|
|
@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable, NotLoaded
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['RecipePage', 'ResultsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class ResultsPage(BasePage):
|
class ResultsPage(BasePage):
|
||||||
""" Page which contains results as a list of recipies
|
""" Page which contains results as a list of recipies
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ from .job import AdeccoJobAdvert
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
|
|
||||||
__all__ = ['SearchPage', 'AdvertPage']
|
|
||||||
MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']
|
MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(HTMLPage):
|
class LoginPage(HTMLPage):
|
||||||
def login(self, username, password):
|
def login(self, username, password):
|
||||||
form = self.get_form(nr=1)
|
form = self.get_form(nr=1)
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable, NotLoaded
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['RecipePage', 'ResultsPage', 'FourOFourPage']
|
|
||||||
|
|
||||||
|
|
||||||
class FourOFourPage(BasePage):
|
class FourOFourPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@ from weboob.tools.browser import BasePage,BrokenPageError
|
||||||
from weboob.capabilities.bill import Subscription, Detail, Bill
|
from weboob.capabilities.bill import Subscription, Detail, Bill
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AmeliBasePage', 'LoginPage', 'HomePage', 'AccountPage', 'LastPaymentsPage', 'PaymentDetailsPage', 'BillsPage']
|
|
||||||
|
|
||||||
# Ugly array to avoid the use of french locale
|
# Ugly array to avoid the use of french locale
|
||||||
FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']
|
FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AmeliTest']
|
|
||||||
|
|
||||||
|
|
||||||
class AmeliTest(BackendTest):
|
class AmeliTest(BackendTest):
|
||||||
BACKEND = 'ameli'
|
BACKEND = 'ameli'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.capabilities.bill import Subscription, Detail, Bill
|
from weboob.capabilities.bill import Subscription, Detail, Bill
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'HomePage', 'AccountPage', 'HistoryPage', 'BillsPage']
|
|
||||||
|
|
||||||
# Ugly array to avoid the use of french locale
|
# Ugly array to avoid the use of french locale
|
||||||
FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']
|
FRENCH_MONTHS = [u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AmeliProTest']
|
|
||||||
|
|
||||||
|
|
||||||
class AmeliProTest(BackendTest):
|
class AmeliProTest(BackendTest):
|
||||||
BACKEND = 'AmeliPro'
|
BACKEND = 'AmeliPro'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Tra
|
||||||
from weboob.tools.date import ChaoticDateGuesser
|
from weboob.tools.date import ChaoticDateGuesser
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, username, password):
|
def login(self, username, password):
|
||||||
self.browser.select_form(name='ssoform')
|
self.browser.select_form(name='ssoform')
|
||||||
|
|
@ -43,7 +40,6 @@ class LoginPage(BasePage):
|
||||||
self.browser.submit(nologin=True)
|
self.browser.submit(nologin=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AccountsPage(BasePage):
|
class AccountsPage(BasePage):
|
||||||
def get_list(self):
|
def get_list(self):
|
||||||
for box in self.document.getroot().cssselect('div.roundedBox div.contentBox'):
|
for box in self.document.getroot().cssselect('div.roundedBox div.contentBox'):
|
||||||
|
|
@ -67,7 +63,6 @@ class TransactionsPage(BasePage):
|
||||||
COL_LABEL = 3
|
COL_LABEL = 3
|
||||||
COL_VALUE = -1
|
COL_VALUE = -1
|
||||||
|
|
||||||
|
|
||||||
def is_last(self):
|
def is_last(self):
|
||||||
current = False
|
current = False
|
||||||
for option in self.document.xpath('//select[@id="viewPeriod"]/option'):
|
for option in self.document.xpath('//select[@id="viewPeriod"]/option'):
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ import re
|
||||||
|
|
||||||
from .job import ApecJobAdvert
|
from .job import ApecJobAdvert
|
||||||
|
|
||||||
__all__ = ['SearchPage', 'AdvertPage']
|
|
||||||
|
|
||||||
|
|
||||||
class SearchPage(BasePage):
|
class SearchPage(BasePage):
|
||||||
def iter_job_adverts(self):
|
def iter_job_adverts(self):
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'OperationsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, username, password):
|
def login(self, username, password):
|
||||||
self.browser.select_form(nr=0)
|
self.browser.select_form(nr=0)
|
||||||
|
|
@ -77,7 +74,6 @@ class OperationsPage(BasePage):
|
||||||
label = self.parser.tocleanstring(tds[self.COL_LABEL])
|
label = self.parser.tocleanstring(tds[self.COL_LABEL])
|
||||||
amount = self.parser.tocleanstring(tds[self.COL_AMOUNT])
|
amount = self.parser.tocleanstring(tds[self.COL_AMOUNT])
|
||||||
|
|
||||||
|
|
||||||
if len(amount) == 0:
|
if len(amount) == 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ from weboob.tools.browser import BasePage, BrokenPageError
|
||||||
from weboob.capabilities import NotAvailable
|
from weboob.capabilities import NotAvailable
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['IndexPage', 'VideoPage', 'ForbiddenVideo', 'LoginPage', 'LoginRedirectPage']
|
|
||||||
|
|
||||||
from .video import ArretSurImagesVideo
|
from .video import ArretSurImagesVideo
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.capabilities.video import BaseVideo
|
from weboob.capabilities.video import BaseVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ArretSurImagesVideo']
|
|
||||||
|
|
||||||
|
|
||||||
class ArretSurImagesVideo(BaseVideo):
|
class ArretSurImagesVideo(BaseVideo):
|
||||||
@classmethod
|
@classmethod
|
||||||
def id2url(cls, _id):
|
def id2url(cls, _id):
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ from weboob.capabilities.image import BaseImage
|
||||||
from weboob.capabilities.collection import Collection
|
from weboob.capabilities.collection import Collection
|
||||||
from .video import ArteLiveVideo
|
from .video import ArteLiveVideo
|
||||||
|
|
||||||
__all__ = ['ArteLivePage', 'ArteLiveVideoPage']
|
|
||||||
|
|
||||||
|
|
||||||
class ArteLiveVideoPage(BasePage):
|
class ArteLiveVideoPage(BasePage):
|
||||||
def get_video(self, video=None):
|
def get_video(self, video=None):
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.capabilities.video import BaseVideo
|
from weboob.capabilities.video import BaseVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ArteVideo', 'ArteLiveVideo']
|
|
||||||
|
|
||||||
|
|
||||||
class ArteVideo(BaseVideo):
|
class ArteVideo(BaseVideo):
|
||||||
@classmethod
|
@classmethod
|
||||||
def id2url(cls, _id):
|
def id2url(cls, _id):
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['SubtitlesPage', 'SearchPage']
|
|
||||||
|
|
||||||
|
|
||||||
class SearchPage(BasePage):
|
class SearchPage(BasePage):
|
||||||
def iter_subtitles(self, language, pattern):
|
def iter_subtitles(self, language, pattern):
|
||||||
fontresult = self.parser.select(self.document.getroot(), 'div.search-results font.search-results')
|
fontresult = self.parser.select(self.document.getroot(), 'div.search-results font.search-results')
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,6 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AntiSpam']
|
|
||||||
|
|
||||||
|
|
||||||
class AntiSpam(object):
|
class AntiSpam(object):
|
||||||
def check_thread(self, thread):
|
def check_thread(self, thread):
|
||||||
resume = thread['title']
|
resume = thread['title']
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from weboob.tools.browser import BrowserUnavailable, BrowserIncorrectPassword
|
from weboob.tools.browser import BrowserUnavailable, BrowserIncorrectPassword
|
||||||
|
|
@ -33,9 +31,6 @@ from aum.exceptions import AdopteWait, AdopteBanned
|
||||||
from aum.browser import AuMBrowser
|
from aum.browser import AuMBrowser
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['PriorityConnection']
|
|
||||||
|
|
||||||
|
|
||||||
class PriorityConnection(Optimization):
|
class PriorityConnection(Optimization):
|
||||||
CONFIG = ValuesDict(ValueInt('minimal', label='Minimal of godchilds', default=5),
|
CONFIG = ValuesDict(ValueInt('minimal', label='Minimal of godchilds', default=5),
|
||||||
Value('domain', label='Domain to use for fake accounts emails', default='aum.example.com'),
|
Value('domain', label='Domain to use for fake accounts emails', default='aum.example.com'),
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
from random import randint
|
from random import randint
|
||||||
|
|
||||||
from weboob.tools.browser import BrowserUnavailable
|
from weboob.tools.browser import BrowserUnavailable
|
||||||
|
|
@ -27,9 +25,6 @@ from weboob.capabilities.dating import Optimization
|
||||||
from weboob.tools.log import getLogger
|
from weboob.tools.log import getLogger
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ProfilesWalker']
|
|
||||||
|
|
||||||
|
|
||||||
class ProfilesWalker(Optimization):
|
class ProfilesWalker(Optimization):
|
||||||
def __init__(self, sched, storage, browser):
|
def __init__(self, sched, storage, browser):
|
||||||
self.sched = sched
|
self.sched = sched
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,12 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
from weboob.tools.browser import BrowserUnavailable
|
from weboob.tools.browser import BrowserUnavailable
|
||||||
from weboob.capabilities.dating import Optimization
|
from weboob.capabilities.dating import Optimization
|
||||||
from weboob.capabilities.contact import QueryError
|
from weboob.capabilities.contact import QueryError
|
||||||
from weboob.tools.log import getLogger
|
from weboob.tools.log import getLogger
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['QueriesQueue']
|
|
||||||
|
|
||||||
|
|
||||||
class QueriesQueue(Optimization):
|
class QueriesQueue(Optimization):
|
||||||
def __init__(self, sched, storage, browser):
|
def __init__(self, sched, storage, browser):
|
||||||
self.sched = sched
|
self.sched = sched
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@ from weboob.tools.browser import BrowserUnavailable
|
||||||
from weboob.capabilities.dating import Optimization
|
from weboob.capabilities.dating import Optimization
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['Visibility']
|
|
||||||
|
|
||||||
|
|
||||||
class Visibility(Optimization):
|
class Visibility(Optimization):
|
||||||
def __init__(self, sched, browser):
|
def __init__(self, sched, browser):
|
||||||
self.sched = sched
|
self.sched = sched
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@ from weboob.tools.test import BackendTest
|
||||||
from weboob.tools.browser import BrowserUnavailable
|
from weboob.tools.browser import BrowserUnavailable
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AuMTest']
|
|
||||||
|
|
||||||
|
|
||||||
class AuMTest(BackendTest):
|
class AuMTest(BackendTest):
|
||||||
BACKEND = 'aum'
|
BACKEND = 'aum'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage', 'CBTransactionsPage', 'UnavailablePage']
|
|
||||||
|
|
||||||
|
|
||||||
class BasePage(_BasePage):
|
class BasePage(_BasePage):
|
||||||
def get_view_state(self):
|
def get_view_state(self):
|
||||||
return self.document.xpath('//input[@name="javax.faces.ViewState"]')[0].attrib['value']
|
return self.document.xpath('//input[@name="javax.faces.ViewState"]')[0].attrib['value']
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
from weboob.tools.exceptions import ParseError
|
from weboob.tools.exceptions import ParseError
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'IndexPage', 'AccountsPage', 'OperationsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile(ur'^(?P<text>.*?) - traité le \d+/\d+$'), FrenchTransaction.TYPE_CARD)]
|
PATTERNS = [(re.compile(ur'^(?P<text>.*?) - traité le \d+/\d+$'), FrenchTransaction.TYPE_CARD)]
|
||||||
|
|
||||||
|
|
@ -192,7 +189,6 @@ class OperationsPage(LoggedPage, HTMLPage):
|
||||||
self.env['amount'] = Transaction.Amount('./td[4]')(self.el)
|
self.env['amount'] = Transaction.Amount('./td[4]')(self.el)
|
||||||
return self.env['amount'] > 0
|
return self.env['amount'] > 0
|
||||||
|
|
||||||
|
|
||||||
class debit(ItemElement):
|
class debit(ItemElement):
|
||||||
klass = Transaction
|
klass = Transaction
|
||||||
obj_type = Transaction.TYPE_CARD
|
obj_type = Transaction.TYPE_CARD
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'IndexPage', 'AccountsPage', 'CardsPage', 'TransactionsPage', 'UnavailablePage', 'RedirectPage']
|
|
||||||
|
|
||||||
|
|
||||||
class WikipediaARC4(object):
|
class WikipediaARC4(object):
|
||||||
def __init__(self, key=None):
|
def __init__(self, key=None):
|
||||||
self.state = range(256)
|
self.state = range(256)
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'Login2Page', 'IndexPage', 'AccountsPage', 'TransactionsPage',
|
|
||||||
'CardPage', 'ValuationPage', 'LoanPage', 'MarketPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
self.browser.select_form(name='frmLogin')
|
self.browser.select_form(name='frmLogin')
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@ from weboob.tools.browser2.page import HTMLPage, method
|
||||||
from weboob.tools.browser2.filters import Filter, Link, CleanText, Env, Regexp, CombineDate, CleanHTML
|
from weboob.tools.browser2.filters import Filter, Link, CleanText, Env, Regexp, CombineDate, CleanHTML
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ProgramPage', 'EventPage']
|
|
||||||
|
|
||||||
|
|
||||||
class BiplanPrice(Filter):
|
class BiplanPrice(Filter):
|
||||||
def filter(self, el):
|
def filter(self, el):
|
||||||
index = 1 if len(el) > 1 else 0
|
index = 1 if len(el) > 1 else 0
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,6 @@ from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard, VirtKeyboardEr
|
||||||
from weboob.tools.misc import to_unicode
|
from weboob.tools.misc import to_unicode
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'UnknownPage']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)(?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)(?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
||||||
(re.compile('^(?P<category>FACTURE CARTE) DU (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*?)( CA?R?T?E? ?\d*X*\d*)?$'),
|
(re.compile('^(?P<category>FACTURE CARTE) DU (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*?)( CA?R?T?E? ?\d*X*\d*)?$'),
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.capabilities.base import NotAvailable
|
from weboob.capabilities.base import NotAvailable
|
||||||
from weboob.tools.browser import BasePage, BrokenPageError, BrowserPasswordExpired
|
from weboob.tools.browser import BasePage, BrokenPageError, BrowserPasswordExpired
|
||||||
|
|
||||||
__all__ = ['AccountsList', 'AccountPrelevement']
|
|
||||||
|
|
||||||
|
|
||||||
class AccountsList(BasePage):
|
class AccountsList(BasePage):
|
||||||
ACCOUNT_TYPES = {
|
ACCOUNT_TYPES = {
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ import urllib
|
||||||
from weboob.tools.browser import BasePage, BrowserUnavailable
|
from weboob.tools.browser import BasePage, BrowserUnavailable
|
||||||
from weboob.tools.captcha.virtkeyboard import VirtKeyboard, VirtKeyboardError
|
from weboob.tools.captcha.virtkeyboard import VirtKeyboard, VirtKeyboardError
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'ConfirmPage', 'ChangePasswordPage']
|
|
||||||
|
|
||||||
|
|
||||||
class BNPVirtKeyboard(VirtKeyboard):
|
class BNPVirtKeyboard(VirtKeyboard):
|
||||||
symbols={'0': '9cc4789a2cb223e8f2d5e676e90264b5',
|
symbols={'0': '9cc4789a2cb223e8f2d5e676e90264b5',
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,6 @@ from datetime import datetime
|
||||||
|
|
||||||
from lxml.html import make_links_absolute
|
from lxml.html import make_links_absolute
|
||||||
|
|
||||||
__all__ = ['MessagesPage', 'MessagePage']
|
|
||||||
|
|
||||||
|
|
||||||
class MessagesPage(BasePage):
|
class MessagesPage(BasePage):
|
||||||
def iter_threads(self):
|
def iter_threads(self):
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AccountHistory', 'AccountComing']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)(?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)(?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
||||||
(re.compile('^(?P<category>FACTURE CARTE) DU (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*?)( CA?R?T?E? ?\d*X*\d*)?$'),
|
(re.compile('^(?P<category>FACTURE CARTE) DU (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*?)( CA?R?T?E? ?\d*X*\d*)?$'),
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ from weboob.tools.ordereddict import OrderedDict
|
||||||
from weboob.capabilities.bank import TransferError
|
from weboob.capabilities.bank import TransferError
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TransferPage', 'TransferConfirmPage', 'TransferCompletePage']
|
|
||||||
|
|
||||||
|
|
||||||
class Account(object):
|
class Account(object):
|
||||||
def __init__(self, id, label, send_checkbox, receive_checkbox):
|
def __init__(self, id, label, send_checkbox, receive_checkbox):
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ from weboob.tools.browser import BasePage
|
||||||
from .perso.transactions import Transaction
|
from .perso.transactions import Transaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ProAccountsList', 'ProAccountHistory']
|
|
||||||
|
|
||||||
|
|
||||||
class ProAccountsList(BasePage):
|
class ProAccountsList(BasePage):
|
||||||
COL_LABEL = 1
|
COL_LABEL = 1
|
||||||
COL_ID = 2
|
COL_ID = 2
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AccountHistory']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile(u'^CHQ\. (?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
PATTERNS = [(re.compile(u'^CHQ\. (?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
||||||
(re.compile('^(ACHAT|PAIEMENT) CARTE (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*)'),
|
(re.compile('^(ACHAT|PAIEMENT) CARTE (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*)'),
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['CardHistory']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile('^(ACHAT |PAIEMENT )?CARTE (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (\d{2} )?(?P<text>.*)'),
|
PATTERNS = [(re.compile('^(ACHAT |PAIEMENT )?CARTE (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (\d{2} )?(?P<text>.*)'),
|
||||||
FrenchTransaction.TYPE_CARD),
|
FrenchTransaction.TYPE_CARD),
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class VirtKeyboard(MappedVirtKeyboard):
|
class VirtKeyboard(MappedVirtKeyboard):
|
||||||
symbols={'0':'40fdd263e99d7268b49e22e06b73ebf1',
|
symbols={'0':'40fdd263e99d7268b49e22e06b73ebf1',
|
||||||
'1':'0d53ac10dba67d3ec601a086d0881b6f',
|
'1':'0d53ac10dba67d3ec601a086d0881b6f',
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@ import urllib2
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AuthenticationPage']
|
|
||||||
|
|
||||||
|
|
||||||
class BrowserAuthenticationCodeMaxLimit(BrowserIncorrectPassword):
|
class BrowserAuthenticationCodeMaxLimit(BrowserIncorrectPassword):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ from weboob.capabilities.messages import CantSendMessage
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ComposeFrame', 'ComposePage', 'ConfirmPage', 'SentPage']
|
|
||||||
|
|
||||||
|
|
||||||
class ComposeFrame(BasePage):
|
class ComposeFrame(BasePage):
|
||||||
phone_regex = re.compile('^(\+33|0033|0)(6|7)(\d{8})$')
|
phone_regex = re.compile('^(\+33|0033|0)(6|7)(\d{8})$')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'LoginSASPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, password):
|
def login(self, login, password):
|
||||||
self.browser.select_form(name='code')
|
self.browser.select_form(name='code')
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AccountHistory', 'CardsList']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)( N)? (?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)( N)? (?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
||||||
(re.compile(r'^(?P<category>ACHAT CB) (?P<text>.*) (?P<dd>\d{2})\.(?P<mm>\d{2}).(?P<yy>\d{2}).*'),
|
(re.compile(r'^(?P<category>ACHAT CB) (?P<text>.*) (?P<dd>\d{2})\.(?P<mm>\d{2}).(?P<yy>\d{2}).*'),
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
from weboob.tools.ordereddict import OrderedDict
|
from weboob.tools.ordereddict import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AccountList']
|
|
||||||
|
|
||||||
|
|
||||||
class AccountList(BasePage):
|
class AccountList(BasePage):
|
||||||
def on_loaded(self):
|
def on_loaded(self):
|
||||||
self.accounts = OrderedDict()
|
self.accounts = OrderedDict()
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@ import lxml.etree as etree
|
||||||
from weboob.tools.browser import BasePage, BrowserUnavailable
|
from weboob.tools.browser import BasePage, BrowserUnavailable
|
||||||
from weboob.tools.captcha.virtkeyboard import VirtKeyboard
|
from weboob.tools.captcha.virtkeyboard import VirtKeyboard
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'BadLoginPage', 'AccountDesactivate', 'Initident', 'CheckPassword', 'repositionnerCheminCourant', 'UnavailablePage']
|
|
||||||
|
|
||||||
|
|
||||||
def md5(f):
|
def md5(f):
|
||||||
md5 = hashlib.md5()
|
md5 = hashlib.md5()
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.misc import to_unicode
|
from weboob.tools.misc import to_unicode
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TransferChooseAccounts', 'CompleteTransfer', 'TransferConfirm', 'TransferSummary']
|
|
||||||
|
|
||||||
|
|
||||||
class TransferChooseAccounts(BasePage):
|
class TransferChooseAccounts(BasePage):
|
||||||
def set_accouts(self, from_account, to_account):
|
def set_accouts(self, from_account, to_account):
|
||||||
self.browser.select_form(name="AiguillageForm")
|
self.browser.select_form(name="AiguillageForm")
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'LoginResultPage', 'AccountsPage', 'TransactionsPage', 'EmptyPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
self.browser.select_form(name='authen')
|
self.browser.select_form(name='authen')
|
||||||
|
|
@ -93,7 +90,6 @@ class LoginResultPage(BasePage):
|
||||||
self.browser[tagName] = [value]
|
self.browser[tagName] = [value]
|
||||||
self.browser.submit()
|
self.browser.submit()
|
||||||
|
|
||||||
|
|
||||||
def confirm(self):
|
def confirm(self):
|
||||||
self.browser.location('MainAuth?typeDemande=AC', no_login=True)
|
self.browser.location('MainAuth?typeDemande=AC', no_login=True)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
__all__ = ['IndexPage']
|
|
||||||
|
|
||||||
|
|
||||||
class IndexPage(BasePage):
|
class IndexPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,6 @@ from weboob.capabilities.torrent import Torrent, MagnetOnly
|
||||||
from weboob.capabilities.base import NotAvailable
|
from weboob.capabilities.base import NotAvailable
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TorrentsPage', 'TorrentPage']
|
|
||||||
|
|
||||||
|
|
||||||
class TorrentsPage(BasePage):
|
class TorrentsPage(BasePage):
|
||||||
|
|
||||||
def iter_torrents(self):
|
def iter_torrents(self):
|
||||||
|
|
@ -74,7 +71,6 @@ class TorrentPage(BasePage):
|
||||||
delta = timedelta(**{valueunit: float(valueago)})
|
delta = timedelta(**{valueunit: float(valueago)})
|
||||||
date = datetime.now() - delta
|
date = datetime.now() - delta
|
||||||
|
|
||||||
|
|
||||||
files = []
|
files = []
|
||||||
for tr in trs[15:]:
|
for tr in trs[15:]:
|
||||||
files.append(unicode(tr.cssselect('td')[1].text))
|
files.append(unicode(tr.cssselect('td')[1].text))
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ from weboob.capabilities.torrent import MagnetOnly
|
||||||
|
|
||||||
from random import choice
|
from random import choice
|
||||||
|
|
||||||
__all__ = ['BTDiggTest']
|
|
||||||
|
|
||||||
class BTDiggTest(BackendTest):
|
class BTDiggTest(BackendTest):
|
||||||
BACKEND = 'btdigg'
|
BACKEND = 'btdigg'
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.misc import get_bytes_size
|
from weboob.tools.misc import get_bytes_size
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TorrentsPage','TorrentPage']
|
|
||||||
|
|
||||||
|
|
||||||
class TorrentsPage(BasePage):
|
class TorrentsPage(BasePage):
|
||||||
def iter_torrents(self):
|
def iter_torrents(self):
|
||||||
for div in self.parser.select(self.document.getroot(),'div.list_tor'):
|
for div in self.parser.select(self.document.getroot(),'div.list_tor'):
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'ErrorPage', 'IndexPage', 'UnavailablePage']
|
|
||||||
|
|
||||||
|
|
||||||
class _LogoutPage(BasePage):
|
class _LogoutPage(BasePage):
|
||||||
def on_loaded(self):
|
def on_loaded(self):
|
||||||
try:
|
try:
|
||||||
|
|
@ -244,8 +241,6 @@ class IndexPage(BasePage):
|
||||||
pass
|
pass
|
||||||
self.browser.submit()
|
self.browser.submit()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def go_history(self, info):
|
def go_history(self, info):
|
||||||
self.browser.select_form(name='main')
|
self.browser.select_form(name='main')
|
||||||
self.browser.set_all_readonly(False)
|
self.browser.set_all_readonly(False)
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,6 @@ from weboob.capabilities.image import BaseImage
|
||||||
|
|
||||||
from .video import CanalplusVideo
|
from .video import CanalplusVideo
|
||||||
|
|
||||||
__all__ = ['ChannelsPage', 'VideoPage']
|
|
||||||
|
|
||||||
|
|
||||||
class ChannelsPage(BasePage):
|
class ChannelsPage(BasePage):
|
||||||
def get_channels(self):
|
def get_channels(self):
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.capabilities.video import BaseVideo
|
from weboob.capabilities.video import BaseVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['CanalplusVideo']
|
|
||||||
|
|
||||||
|
|
||||||
class CanalplusVideo(BaseVideo):
|
class CanalplusVideo(BaseVideo):
|
||||||
swf_player = False
|
swf_player = False
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'HomePage', 'TransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(HTMLPage):
|
class LoginPage(HTMLPage):
|
||||||
def enter_login(self, username):
|
def enter_login(self, username):
|
||||||
form = self.get_form(nr=0)
|
form = self.get_form(nr=0)
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ from weboob.tools.browser2.filters import Filter, Link, CleanText, Format, Env,
|
||||||
|
|
||||||
from weboob.capabilities.job import BaseJobAdvert
|
from weboob.capabilities.job import BaseJobAdvert
|
||||||
|
|
||||||
__all__ = ['SearchPage']
|
|
||||||
|
|
||||||
|
|
||||||
class Child(Filter):
|
class Child(Filter):
|
||||||
def filter(self, el):
|
def filter(self, el):
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.capabilities import NotAvailable
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['IndexPage', 'TrackPage']
|
|
||||||
|
|
||||||
|
|
||||||
class IndexPage(BasePage):
|
class IndexPage(BasePage):
|
||||||
def track_package(self, _id):
|
def track_package(self, _id):
|
||||||
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'suivreEnvoi')
|
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'suivreEnvoi')
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
self.browser.select_form(name='formIdentification')
|
self.browser.select_form(name='formIdentification')
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.capabilities.parcel import Parcel, Event
|
from weboob.capabilities.parcel import Parcel, Event
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TrackPage', 'ErrorPage']
|
|
||||||
|
|
||||||
def update_status(p, status):
|
def update_status(p, status):
|
||||||
if p.status < status:
|
if p.status < status:
|
||||||
p.status = status
|
p.status = status
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ ControlNotFoundError = ClientForm.ControlNotFoundError
|
||||||
from .base import CragrBasePage
|
from .base import CragrBasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(CragrBasePage):
|
class LoginPage(CragrBasePage):
|
||||||
def login(self, login, password):
|
def login(self, login, password):
|
||||||
self.browser.select_form(nr=0)
|
self.browser.select_form(nr=0)
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.tools.browser import BasePage, BrokenPageError
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['HomePage', 'LoginPage', 'LoginErrorPage', 'AccountsPage', 'TransactionsPage', 'UselessPage']
|
|
||||||
|
|
||||||
|
|
||||||
class HomePage(BasePage):
|
class HomePage(BasePage):
|
||||||
def get_post_url(self):
|
def get_post_url(self):
|
||||||
for script in self.document.xpath('//script'):
|
for script in self.document.xpath('//script'):
|
||||||
|
|
@ -179,7 +176,6 @@ class CardsPage(BasePage):
|
||||||
|
|
||||||
yield account
|
yield account
|
||||||
|
|
||||||
|
|
||||||
def get_history(self, date_guesser):
|
def get_history(self, date_guesser):
|
||||||
seen = set()
|
seen = set()
|
||||||
lines = self.document.xpath('(//table[@class="ca-table"])[2]/tr')
|
lines = self.document.xpath('(//table[@class="ca-table"])[2]/tr')
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage', 'ComingTransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, password):
|
def login(self, login, password):
|
||||||
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'AuthForm')
|
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'AuthForm')
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage', 'ComingTransactionsPage', 'CardTransactionsPage', 'ITransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, pin, strong_auth):
|
def login(self, login, pin, strong_auth):
|
||||||
form_nb = 1 if strong_auth else 0
|
form_nb = 1 if strong_auth else 0
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,6 @@ from weboob.capabilities import NotAvailable
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@ from weboob.capabilities.base import NotAvailable, NotLoaded
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['RecipePage', 'ResultsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class ResultsPage(BasePage):
|
class ResultsPage(BasePage):
|
||||||
""" Page which contains results as a list of recipies
|
""" Page which contains results as a list of recipies
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,6 @@ from weboob.tools.browser import BasePage, BrokenPageError
|
||||||
from .video import DailymotionVideo
|
from .video import DailymotionVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['IndexPage', 'VideoPage', 'KidsVideoPage']
|
|
||||||
|
|
||||||
|
|
||||||
class IndexPage(BasePage):
|
class IndexPage(BasePage):
|
||||||
def iter_videos(self):
|
def iter_videos(self):
|
||||||
for div in self.parser.select(self.document.getroot(), 'div.sd_video_listitem'):
|
for div in self.parser.select(self.document.getroot(), 'div.sd_video_listitem'):
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.capabilities.video import BaseVideo
|
from weboob.capabilities.video import BaseVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['DailymotionVideo']
|
|
||||||
|
|
||||||
|
|
||||||
class DailymotionVideo(BaseVideo):
|
class DailymotionVideo(BaseVideo):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
BaseVideo.__init__(self, *args, **kwargs)
|
BaseVideo.__init__(self, *args, **kwargs)
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'DashboardPage', 'OperationsPage', 'LCRPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, username, password):
|
def login(self, username, password):
|
||||||
self.browser.select_form(name="frmLogin")
|
self.browser.select_form(name="frmLogin")
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ from weboob.tools.test import BackendTest
|
||||||
from .browser import DLFP
|
from .browser import DLFP
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['DLFPTest']
|
|
||||||
|
|
||||||
|
|
||||||
class DLFPTest(BackendTest):
|
class DLFPTest(BackendTest):
|
||||||
BACKEND = 'dlfp'
|
BACKEND = 'dlfp'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ from weboob.capabilities.gauge import GaugeMeasure, GaugeSensor
|
||||||
from weboob.capabilities.base import NotAvailable
|
from weboob.capabilities.base import NotAvailable
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['StartPage']
|
|
||||||
|
|
||||||
|
|
||||||
class Split(Filter):
|
class Split(Filter):
|
||||||
def __init__(self, selector, mode):
|
def __init__(self, selector, mode):
|
||||||
super(Split, self).__init__(selector)
|
super(Split, self).__init__(selector)
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['DresdenWetterTest']
|
|
||||||
|
|
||||||
|
|
||||||
class DresdenWetterTest(BackendTest):
|
class DresdenWetterTest(BackendTest):
|
||||||
BACKEND = 'dresdenwetter'
|
BACKEND = 'dresdenwetter'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['EbonicsTest']
|
|
||||||
|
|
||||||
|
|
||||||
class EbonicsTest(BackendTest):
|
class EbonicsTest(BackendTest):
|
||||||
BACKEND = 'ebonics'
|
BACKEND = 'ebonics'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ from decimal import Decimal
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
from weboob.capabilities.bill import Subscription, Detail, Bill
|
from weboob.capabilities.bill import Subscription, Detail, Bill
|
||||||
|
|
||||||
__all__ = ['AccountPage', 'BillsPage', 'EdfBasePage', 'FirstRedirectionPage', 'HomePage', 'LastPaymentsPage', 'LastPaymentsPage2', 'LoginPage', 'OtherPage', 'SecondRedirectionPage']
|
|
||||||
base_url = "http://particuliers.edf.com/"
|
base_url = "http://particuliers.edf.com/"
|
||||||
|
|
||||||
class EdfBasePage(BasePage):
|
class EdfBasePage(BasePage):
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['EdfTest']
|
|
||||||
|
|
||||||
|
|
||||||
class EdfTest(BackendTest):
|
class EdfTest(BackendTest):
|
||||||
BACKEND = 'edf'
|
BACKEND = 'edf'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@ import re
|
||||||
from .gallery import EHentaiGallery
|
from .gallery import EHentaiGallery
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['GalleryPage', 'ImagePage', 'IndexPage', 'HomePage', 'LoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def is_logged(self):
|
def is_logged(self):
|
||||||
success_p = self.document.xpath(
|
success_p = self.document.xpath(
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,6 @@ from weboob.tools.browser import BrokenPageError
|
||||||
from .video import EuroparlVideo
|
from .video import EuroparlVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['VideoPage']
|
|
||||||
|
|
||||||
|
|
||||||
class VideoPage(BasePage):
|
class VideoPage(BasePage):
|
||||||
def get_video(self, video=None):
|
def get_video(self, video=None):
|
||||||
if video is None:
|
if video is None:
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ from weboob.capabilities.video import BaseVideo
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
__all__ = ['EuroparlVideo']
|
|
||||||
|
|
||||||
|
|
||||||
class EuroparlVideo(BaseVideo):
|
class EuroparlVideo(BaseVideo):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ from urlparse import urlparse, parse_qs
|
||||||
from weboob.tools.browser2 import LoginBrowser, URL, HTMLPage
|
from weboob.tools.browser2 import LoginBrowser, URL, HTMLPage
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.tools.exceptions import BrowserIncorrectPassword
|
||||||
|
|
||||||
__all__ = ['GoogleBrowser', 'GoogleLoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class GoogleLoginPage(HTMLPage):
|
class GoogleLoginPage(HTMLPage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ from weboob.tools.browser2.page import JsonPage, method
|
||||||
from weboob.tools.browser2.elements import ListElement, ItemElement
|
from weboob.tools.browser2.elements import ListElement, ItemElement
|
||||||
from weboob.tools.browser2.filters import CleanText, Dict, Format, CleanHTML
|
from weboob.tools.browser2.filters import CleanText, Dict, Format, CleanHTML
|
||||||
|
|
||||||
__all__ = ['TokenPage', 'ContentsPage', 'PreferencesPage']
|
|
||||||
|
|
||||||
|
|
||||||
class DictElement(ListElement):
|
class DictElement(ListElement):
|
||||||
def find_elements(self):
|
def find_elements(self):
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,6 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
from weboob.tools.json import json
|
from weboob.tools.json import json
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['GlobalAccountsList', 'AccountsList', 'AccountHistoryPage']
|
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)(?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
PATTERNS = [(re.compile(u'^(?P<category>CHEQUE)(?P<text>.*)'), FrenchTransaction.TYPE_CHECK),
|
||||||
(re.compile('^(?P<category>FACTURE CARTE) DU (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*?)( CA?R?T?E? ?\d*X*\d*)?$'),
|
(re.compile('^(?P<category>FACTURE CARTE) DU (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*?)( CA?R?T?E? ?\d*X*\d*)?$'),
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,6 @@
|
||||||
from weboob.tools.browser import BasePage, BrowserUnavailable
|
from weboob.tools.browser import BasePage, BrowserUnavailable
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
msgb = self.document.xpath(".//*[@id='message_client']/text()")
|
msgb = self.document.xpath(".//*[@id='message_client']/text()")
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ from datetime import datetime
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['BoardPage']
|
|
||||||
|
|
||||||
|
|
||||||
class Message(object):
|
class Message(object):
|
||||||
def __init__(self, browser, board, id, filename=u'', url=u''):
|
def __init__(self, browser, board, id, filename=u'', url=u''):
|
||||||
self.id = id
|
self.id = id
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,6 @@ from weboob.tools.browser2.elements import ItemElement, ListElement
|
||||||
from weboob.tools.browser2.filters import Filter, Link, CleanText, Regexp, Attr, Format, DateTime, Env, Dict, Duration, XPath
|
from weboob.tools.browser2.filters import Filter, Link, CleanText, Regexp, Attr, Format, DateTime, Env, Dict, Duration, XPath
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['IndexPage', 'VideoPage']
|
|
||||||
|
|
||||||
|
|
||||||
class DurationPluzz(Filter):
|
class DurationPluzz(Filter):
|
||||||
def filter(self, el):
|
def filter(self, el):
|
||||||
duration = Regexp(CleanText('.'), r'.+\|(.+)')(el[0])
|
duration = Regexp(CleanText('.'), r'.+\|(.+)')(el[0])
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,6 @@ from weboob.tools.browser2.filters import Date, CleanText, Attr, Filter,\
|
||||||
from weboob.capabilities.bill import Detail, Bill
|
from weboob.capabilities.bill import Detail, Bill
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['HistoryPage', 'DetailsPage', 'BadUTF8Page']
|
|
||||||
|
|
||||||
|
|
||||||
class FormatDate(Filter):
|
class FormatDate(Filter):
|
||||||
def filter(self, txt):
|
def filter(self, txt):
|
||||||
return datetime.strptime(txt, "%Y%m%d").date()
|
return datetime.strptime(txt, "%Y%m%d").date()
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ from weboob.tools.browser2.page import method
|
||||||
from weboob.tools.browser2.elements import ListElement, ItemElement
|
from weboob.tools.browser2.elements import ListElement, ItemElement
|
||||||
from weboob.tools.browser2.filters import CleanText, Attr, Field, Format, Filter
|
from weboob.tools.browser2.filters import CleanText, Attr, Field, Format, Filter
|
||||||
|
|
||||||
__all__ = ['HomePage']
|
|
||||||
|
|
||||||
|
|
||||||
class GetID(Filter):
|
class GetID(Filter):
|
||||||
def filter(self, txt):
|
def filter(self, txt):
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ from PIL import Image
|
||||||
|
|
||||||
from weboob.tools.browser2.page import HTMLPage
|
from weboob.tools.browser2.page import HTMLPage
|
||||||
|
|
||||||
__all__ = ['LoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class FreeKeyboard(object):
|
class FreeKeyboard(object):
|
||||||
symbols = {'0': '001111111111110011111111111111111111111111111110000000000011110000000000011111111111111111011111111111111001111111111110',
|
symbols = {'0': '001111111111110011111111111111111111111111111110000000000011110000000000011111111111111111011111111111111001111111111110',
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['FreeMobileTest']
|
|
||||||
|
|
||||||
|
|
||||||
class FreeMobileTest(BackendTest):
|
class FreeMobileTest(BackendTest):
|
||||||
BACKEND = 'freemobile'
|
BACKEND = 'freemobile'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'AccountsPage', 'TransactionsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
self.browser.select_form(name='loginForm')
|
self.browser.select_form(name='loginForm')
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.browser import BrowserUnavailable, BasePage as _BasePage
|
from weboob.tools.browser import BrowserUnavailable, BasePage as _BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['BasePage']
|
|
||||||
|
|
||||||
|
|
||||||
class BasePage(_BasePage):
|
class BasePage(_BasePage):
|
||||||
def on_loaded(self):
|
def on_loaded(self):
|
||||||
errors = []
|
errors = []
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@ from weboob.tools.browser import BrowserIncorrectPassword, BrowserBanned
|
||||||
from .base import BasePage
|
from .base import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['IndexPage', 'LoginPage']
|
|
||||||
|
|
||||||
|
|
||||||
class IndexPage(BasePage):
|
class IndexPage(BasePage):
|
||||||
def is_logged(self):
|
def is_logged(self):
|
||||||
return 'id' in self.document.find('body').attrib
|
return 'id' in self.document.find('body').attrib
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,6 @@ from weboob.capabilities.base import NotLoaded
|
||||||
from .base import BasePage
|
from .base import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TorrentsPage']
|
|
||||||
|
|
||||||
|
|
||||||
class TorrentsPage(BasePage):
|
class TorrentsPage(BasePage):
|
||||||
TORRENTID_REGEXP = re.compile('torrents\.php\?action=download&id=(\d+)')
|
TORRENTID_REGEXP = re.compile('torrents\.php\?action=download&id=(\d+)')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,6 @@ from .video import GDCVaultVideo
|
||||||
|
|
||||||
# TODO: check title on 1439
|
# TODO: check title on 1439
|
||||||
|
|
||||||
__all__ = ['IndexPage', 'SearchPage', 'VideoPage']
|
|
||||||
|
|
||||||
|
|
||||||
class IndexPage(BasePage):
|
class IndexPage(BasePage):
|
||||||
def iter_videos(self):
|
def iter_videos(self):
|
||||||
|
|
@ -73,7 +71,6 @@ class IndexPage(BasePage):
|
||||||
else:
|
else:
|
||||||
video.thumbnail = NotAvailable
|
video.thumbnail = NotAvailable
|
||||||
|
|
||||||
|
|
||||||
#m = re.match('id-(\d+)', a.attrib.get('class', ''))
|
#m = re.match('id-(\d+)', a.attrib.get('class', ''))
|
||||||
#if not m:
|
#if not m:
|
||||||
# continue
|
# continue
|
||||||
|
|
@ -115,7 +112,6 @@ class VideoPage(BasePage):
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
title = None
|
title = None
|
||||||
|
|
||||||
|
|
||||||
if title is None:
|
if title is None:
|
||||||
obj = self.parser.select(self.document.getroot(), 'meta[name=title]')
|
obj = self.parser.select(self.document.getroot(), 'meta[name=title]')
|
||||||
if len(obj) > 0:
|
if len(obj) > 0:
|
||||||
|
|
@ -128,7 +124,6 @@ class VideoPage(BasePage):
|
||||||
# XXX: this doesn't even works!?
|
# XXX: this doesn't even works!?
|
||||||
title = obj[0].attrib['content'].decode('iso-5589-15')
|
title = obj[0].attrib['content'].decode('iso-5589-15')
|
||||||
|
|
||||||
|
|
||||||
if title is not None:
|
if title is not None:
|
||||||
title = title.strip()
|
title = title.strip()
|
||||||
m = re.match('GDC Vault\s+-\s+(.*)', title)
|
m = re.match('GDC Vault\s+-\s+(.*)', title)
|
||||||
|
|
@ -169,7 +164,6 @@ class VideoPage(BasePage):
|
||||||
# if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2':
|
# if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2':
|
||||||
# print 'BUG'
|
# print 'BUG'
|
||||||
|
|
||||||
|
|
||||||
#print req.code
|
#print req.code
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
#print e.getcode()
|
#print e.getcode()
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ from weboob.capabilities.base import NotAvailable
|
||||||
import re
|
import re
|
||||||
from dateutil.parser import parse as parse_dt
|
from dateutil.parser import parse as parse_dt
|
||||||
|
|
||||||
__all__ = ['GDCVaultVideo']
|
|
||||||
|
|
||||||
|
|
||||||
class GDCVaultVideo(BaseVideo):
|
class GDCVaultVideo(BaseVideo):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,6 @@ from weboob.tools.browser import BasePage
|
||||||
from weboob.capabilities.base import NotAvailable
|
from weboob.capabilities.base import NotAvailable
|
||||||
from weboob.capabilities.bill import Detail, Bill
|
from weboob.capabilities.bill import Detail, Bill
|
||||||
|
|
||||||
__all__ = ['HistoryPage', 'PdfPage']
|
|
||||||
|
|
||||||
|
|
||||||
class HistoryPage(BasePage):
|
class HistoryPage(BasePage):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ from datetime import date
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
from weboob.capabilities.bill import Subscription
|
from weboob.capabilities.bill import Subscription
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'HomePage', 'AccountPage', 'TimeoutPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(BasePage):
|
class LoginPage(BasePage):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['GdfSuezTest']
|
|
||||||
|
|
||||||
|
|
||||||
class GdfSuezTest(BackendTest):
|
class GdfSuezTest(BackendTest):
|
||||||
BACKEND = 'gdfsuez'
|
BACKEND = 'gdfsuez'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['TranslatePage']
|
|
||||||
|
|
||||||
|
|
||||||
class TranslatePage(BasePage):
|
class TranslatePage(BasePage):
|
||||||
def get_translation(self):
|
def get_translation(self):
|
||||||
boxes = self.parser.select(self.document.getroot(), 'span#result_box', 1).findall('span')
|
boxes = self.parser.select(self.document.getroot(), 'span#result_box', 1).findall('span')
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['GoogleTranslateTest']
|
|
||||||
|
|
||||||
|
|
||||||
class GoogleTranslateTest(BackendTest):
|
class GoogleTranslateTest(BackendTest):
|
||||||
BACKEND = 'googletranslate'
|
BACKEND = 'googletranslate'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ from weboob.tools.browser2.filters import CleanText, CleanDecimal, TableCell, Da
|
||||||
from weboob.capabilities.bank import Account, Transaction
|
from weboob.capabilities.bank import Account, Transaction
|
||||||
from weboob.tools.date import LinearDateGuesser
|
from weboob.tools.date import LinearDateGuesser
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'LoginErrorPage', 'AvoirPage', 'OperationsFuturesPage', 'OperationsTraiteesPage']
|
|
||||||
|
|
||||||
|
|
||||||
class LoginPage(HTMLPage):
|
class LoginPage(HTMLPage):
|
||||||
def login(self, login, passwd):
|
def login(self, login, passwd):
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,6 @@ import re
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ValidationPage', 'HomePage', 'HistoryPage', 'StoryPage']
|
|
||||||
|
|
||||||
|
|
||||||
class ValidationPage(BasePage):
|
class ValidationPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@ from weboob.tools.test import BackendTest
|
||||||
from weboob.tools.misc import limit
|
from weboob.tools.misc import limit
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['HDSTest']
|
|
||||||
|
|
||||||
|
|
||||||
class HDSTest(BackendTest):
|
class HDSTest(BackendTest):
|
||||||
BACKEND = 'hds'
|
BACKEND = 'hds'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ from weboob.tools.browser import BasePage, BrowserPasswordExpired
|
||||||
from weboob.tools.json import json
|
from weboob.tools.json import json
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['AccountsList', 'AccountPrelevement']
|
|
||||||
|
|
||||||
|
|
||||||
class AccountsList(BasePage):
|
class AccountsList(BasePage):
|
||||||
ACCOUNT_TYPES = {
|
ACCOUNT_TYPES = {
|
||||||
1: Account.TYPE_CHECKING,
|
1: Account.TYPE_CHECKING,
|
||||||
|
|
@ -87,6 +84,5 @@ class AccountsList(BasePage):
|
||||||
return self.document.xpath('//a[@title="Messagerie"]')[0].attrib['href']
|
return self.document.xpath('//a[@title="Messagerie"]')[0].attrib['href']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AccountPrelevement(AccountsList):
|
class AccountPrelevement(AccountsList):
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue