rename things related to browsers

weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
This commit is contained in:
Romain Bignon 2014-10-07 00:23:18 +02:00
commit d61e15cf84
396 changed files with 1442 additions and 1382 deletions

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.browser import Browser, BrowserIncorrectPassword, BrowserUnavailable
from weboob.deprecated.browser import Browser, BrowserIncorrectPassword, BrowserUnavailable
from .pages.accounts_list import AccountsList, AccountHistory, CardsList
from .pages.login import LoginPage, BadLoginPage

View file

@ -28,7 +28,7 @@ import re
from weboob.capabilities.base import empty, NotAvailable
from weboob.capabilities.bank import Account
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
from weboob.tools.browser import BrokenPageError
from weboob.deprecated.browser import BrokenPageError
from .base import BasePage

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.browser import Page as _BasePage
from weboob.deprecated.browser import Page as _BasePage
class BasePage(_BasePage):

View file

@ -23,8 +23,8 @@ from logging import error
import re
from weboob.tools.json import json
from weboob.tools.browser import BrowserUnavailable
from weboob.tools.mech import ClientForm
from weboob.deprecated.browser import BrowserUnavailable
from weboob.deprecated.mech import ClientForm
from .base import BasePage
from ..captcha import Captcha, TileError

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.browser import Browser, BrowserIncorrectPassword
from weboob.deprecated.browser import Browser, BrowserIncorrectPassword
from weboob.tools.ordereddict import OrderedDict
from .pages import LoginPage, ErrorPage, AccountsPage, CardsPage, HistoryPage, CardHistoryPage

View file

@ -23,9 +23,9 @@ import re
from decimal import Decimal
from datetime import datetime
from weboob.tools.browser import Page
from weboob.deprecated.browser import Page
from weboob.tools.json import json
from weboob.tools.mech import ClientForm
from weboob.deprecated.mech import ClientForm
from weboob.tools.misc import to_unicode
from weboob.capabilities.bank import Account