Move exceptions to weboob.core.exceptions
This commit is contained in:
parent
a019819f9d
commit
9949bbf919
35 changed files with 34 additions and 34 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, AccountsPage
|
from .pages import LoginPage, AccountsPage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, need_login, URL
|
from weboob.browser2 import LoginBrowser, need_login, URL
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, IndexPage, AccountsPage, OperationsPage
|
from .pages import LoginPage, IndexPage, AccountsPage, OperationsPage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ from weboob.browser2.filters.standard import CleanText, Regexp, CleanDecimal, En
|
||||||
from weboob.browser2.filters.html import Attr
|
from weboob.browser2.filters.html import Attr
|
||||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard, VirtKeyboardError
|
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard, VirtKeyboardError
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
from weboob.tools.exceptions import ParseError
|
from weboob.core.exceptions import ParseError
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, HomePage, TransactionsPage
|
from .pages import LoginPage, HomePage, TransactionsPage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ from weboob.capabilities.bank import Account, Transaction
|
||||||
from weboob.tools.backend import Module, BackendConfig
|
from weboob.tools.backend import Module, BackendConfig
|
||||||
from weboob.tools.value import ValueBackendPassword
|
from weboob.tools.value import ValueBackendPassword
|
||||||
from weboob.capabilities.base import NotAvailable
|
from weboob.capabilities.base import NotAvailable
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword, ParseError
|
from weboob.core.exceptions import BrowserIncorrectPassword, ParseError
|
||||||
from weboob.browser2 import Browser
|
from weboob.browser2 import Browser
|
||||||
|
|
||||||
from re import match, compile, sub
|
from re import match, compile, sub
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ from datetime import datetime, timedelta
|
||||||
|
|
||||||
from weboob.tools.compat import basestring
|
from weboob.tools.compat import basestring
|
||||||
from weboob.browser2 import LoginBrowser, URL, Wget, need_login
|
from weboob.browser2 import LoginBrowser, URL, Wget, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from weboob.capabilities.bank import Transfer, TransferError
|
from weboob.capabilities.bank import Transfer, TransferError
|
||||||
|
|
||||||
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, \
|
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, \
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ from weboob.browser2.page import HTMLPage, method, FormNotFound, LoggedPage
|
||||||
from weboob.browser2.elements import ListElement, ItemElement, SkipItem
|
from weboob.browser2.elements import ListElement, ItemElement, SkipItem
|
||||||
from weboob.browser2.filters.standard import Filter, Env, CleanText, CleanDecimal, Field, TableCell
|
from weboob.browser2.filters.standard import Filter, Env, CleanText, CleanDecimal, Field, TableCell
|
||||||
from weboob.browser2.filters.html import Link
|
from weboob.browser2.filters.html import Link
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from weboob.capabilities import NotAvailable
|
from weboob.capabilities import NotAvailable
|
||||||
from weboob.capabilities.bank import Account
|
from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
from urlparse import urlparse, parse_qs
|
from urlparse import urlparse, parse_qs
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, HTMLPage
|
from weboob.browser2 import LoginBrowser, URL, HTMLPage
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
|
|
||||||
|
|
||||||
class GoogleLoginPage(HTMLPage):
|
class GoogleLoginPage(HTMLPage):
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from .pages import HomePage, LoginPage, HistoryPage, DetailsPage
|
from .pages import HomePage, LoginPage, HistoryPage, DetailsPage
|
||||||
|
|
||||||
__all__ = ['Freemobile']
|
__all__ = ['Freemobile']
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, LoginErrorPage, AvoirPage, OperationsTraiteesPage, OperationsFuturesPage
|
from .pages import LoginPage, LoginErrorPage, AvoirPage, OperationsTraiteesPage, OperationsFuturesPage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import ssl
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from weboob.tools.date import LinearDateGuesser
|
from weboob.tools.date import LinearDateGuesser
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from .pages import AccountsPage, CBOperationPage, CPTOperationPage, LoginPage
|
from .pages import AccountsPage, CBOperationPage, CPTOperationPage, LoginPage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ from weboob.capabilities import NotAvailable
|
||||||
from weboob.capabilities.bank import Account
|
from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from weboob.browser2.elements import ListElement, ItemElement, SkipItem
|
from weboob.browser2.elements import ListElement, ItemElement, SkipItem
|
||||||
from weboob.browser2.page import HTMLPage, method, LoggedPage, pagination
|
from weboob.browser2.page import HTMLPage, method, LoggedPage, pagination
|
||||||
from weboob.browser2.filters.standard import Filter, Env, CleanText, CleanDecimal, Field, DateGuesser, TableCell
|
from weboob.browser2.filters.standard import Filter, Env, CleanText, CleanDecimal, Field, DateGuesser, TableCell
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
import hashlib
|
import hashlib
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword, ParseError
|
from weboob.core.exceptions import BrowserIncorrectPassword, ParseError
|
||||||
from weboob.capabilities.bank import Account, TransferError
|
from weboob.capabilities.bank import Account, TransferError
|
||||||
|
|
||||||
from .pages import AccountsList, LoginPage, TitrePage, TitreHistory,\
|
from .pages import AccountsList, LoginPage, TitrePage, TitreHistory,\
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from weboob.tools.captcha.virtkeyboard import VirtKeyboard
|
from weboob.tools.captcha.virtkeyboard import VirtKeyboard
|
||||||
from weboob.browser2.page import HTMLPage
|
from weboob.browser2.page import HTMLPage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
from weboob.capabilities.bank import Account
|
from weboob.capabilities.bank import Account
|
||||||
|
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
|
|
||||||
from .pages import LoginPage, IndexPage, OperationsPage
|
from .pages import LoginPage, IndexPage, OperationsPage
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard, VirtKeyboardEr
|
||||||
from weboob.browser2.page import HTMLPage, method, LoggedPage, pagination
|
from weboob.browser2.page import HTMLPage, method, LoggedPage, pagination
|
||||||
from weboob.browser2.elements import ListElement, ItemElement
|
from weboob.browser2.elements import ListElement, ItemElement
|
||||||
from weboob.browser2.filters.standard import Env, CleanDecimal
|
from weboob.browser2.filters.standard import Env, CleanDecimal
|
||||||
from weboob.tools.exceptions import ParseError
|
from weboob.core.exceptions import ParseError
|
||||||
|
|
||||||
|
|
||||||
class Transaction(FrenchTransaction):
|
class Transaction(FrenchTransaction):
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ from weboob.capabilities.paste import BasePaste, PasteNotFound
|
||||||
from weboob.browser2.filters.standard import CleanText, DateTime, Env, RawText, Regexp
|
from weboob.browser2.filters.standard import CleanText, DateTime, Env, RawText, Regexp
|
||||||
from weboob.browser2.page import HTMLPage, method, PagesBrowser, URL
|
from weboob.browser2.page import HTMLPage, method, PagesBrowser, URL
|
||||||
from weboob.browser2.elements import ItemElement
|
from weboob.browser2.elements import ItemElement
|
||||||
from weboob.tools.exceptions import BrowserHTTPNotFound
|
from weboob.core.exceptions import BrowserHTTPNotFound
|
||||||
|
|
||||||
|
|
||||||
class Spam(Exception):
|
class Spam(Exception):
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ from weboob.browser2.elements import ItemElement
|
||||||
from weboob.browser2.filters.standard import Base, CleanText, DateTime, Env, Filter, FilterError, RawText
|
from weboob.browser2.filters.standard import Base, CleanText, DateTime, Env, Filter, FilterError, RawText
|
||||||
from weboob.browser2.filters.html import Attr
|
from weboob.browser2.filters.html import Attr
|
||||||
from weboob.browser2.page import method, RawPage
|
from weboob.browser2.page import method, RawPage
|
||||||
from weboob.tools.exceptions import BrowserHTTPNotFound, BrowserIncorrectPassword, BrowserUnavailable
|
from weboob.core.exceptions import BrowserHTTPNotFound, BrowserIncorrectPassword, BrowserUnavailable
|
||||||
|
|
||||||
|
|
||||||
class PastebinPaste(BasePaste):
|
class PastebinPaste(BasePaste):
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from weboob.browser2 import LoginBrowser, URL, need_login
|
from weboob.browser2 import LoginBrowser, URL, need_login
|
||||||
from weboob.tools.exceptions import BrowserIncorrectPassword
|
from weboob.core.exceptions import BrowserIncorrectPassword
|
||||||
from .pages import HomePage, LoginPage, HistoryPage, BillsPage, ErrorPage
|
from .pages import HomePage, LoginPage, HistoryPage, BillsPage, ErrorPage
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# 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.exceptions import BrowserBanned
|
from weboob.core.exceptions import BrowserBanned
|
||||||
from weboob.browser2.page import HTMLPage, LoggedPage, method, pagination
|
from weboob.browser2.page import HTMLPage, LoggedPage, method, pagination
|
||||||
from weboob.browser2.elements import ListElement, ItemElement
|
from weboob.browser2.elements import ListElement, ItemElement
|
||||||
from weboob.browser2.filters.standard import CleanText, CleanDecimal, Field, DateTime, Format
|
from weboob.browser2.filters.standard import CleanText, CleanDecimal, Field, DateTime, Format
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue