Move browser2 from weboob/tools/b2 to weboob/browser2
This commit is contained in:
parent
990bb056eb
commit
a019819f9d
90 changed files with 211 additions and 211 deletions
|
|
@ -23,7 +23,7 @@ from copy import deepcopy
|
|||
|
||||
from weboob.tools.log import getLogger
|
||||
from weboob.tools.ordereddict import OrderedDict
|
||||
from weboob.tools.browser2.page import NextPage
|
||||
from weboob.browser2.page import NextPage
|
||||
|
||||
from .filters.standard import _Filter, CleanText
|
||||
from .filters.html import AttributeNotFound, XPathNotFound
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
import re
|
||||
from ast import literal_eval
|
||||
|
||||
from weboob.tools.browser2.filters.standard import Filter, Regexp, RegexpError
|
||||
from weboob.browser2.filters.standard import Filter, Regexp, RegexpError
|
||||
from weboob.tools.exceptions import ParseError
|
||||
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ from dateutil.parser import parse as parse_date
|
|||
from weboob.capabilities.base import empty
|
||||
from weboob.tools.compat import basestring
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.tools.browser2 import URL
|
||||
from weboob.browser2 import URL
|
||||
from weboob.tools.log import getLogger
|
||||
|
||||
class NoDefault(object):
|
||||
|
|
@ -251,7 +251,7 @@ class TableCell(_Filter):
|
|||
For example:
|
||||
|
||||
>>> from weboob.capabilities.bank import Transaction
|
||||
>>> from weboob.tools.browser2.elements import TableElement, ItemElement
|
||||
>>> from weboob.browser2.elements import TableElement, ItemElement
|
||||
>>> class table(TableElement):
|
||||
... head_xpath = '//table/thead/th'
|
||||
... item_xpath = '//table/tbody/tr'
|
||||
|
|
@ -279,7 +279,7 @@ class PagesBrowser(DomainBrowser):
|
|||
def open(self, *args, **kwargs):
|
||||
"""
|
||||
Same method than
|
||||
:meth:`weboob.tools.browser2.browser.DomainBrowser.open`, but the
|
||||
:meth:`weboob.browser2.browser.DomainBrowser.open`, but the
|
||||
response contains an attribute `page` if the url matches any
|
||||
:class:`URL` object.
|
||||
"""
|
||||
|
|
@ -309,7 +309,7 @@ class PagesBrowser(DomainBrowser):
|
|||
def location(self, *args, **kwargs):
|
||||
"""
|
||||
Same method than
|
||||
:meth:`weboob.tools.browser2.browser.Browser.location`, but if the
|
||||
:meth:`weboob.browser2.browser.Browser.location`, but if the
|
||||
url matches any :class:`URL` object, an attribute `page` is added to
|
||||
response, and the attribute :attr:`PagesBrowser.page` is set.
|
||||
"""
|
||||
|
|
@ -442,7 +442,7 @@ class Repositories(object):
|
|||
self.load()
|
||||
|
||||
def load_browser(self):
|
||||
from weboob.tools.browser2.browser import Browser, Weboob as WeboobProfile
|
||||
from weboob.browser2.browser import Browser, Weboob as WeboobProfile
|
||||
class WeboobBrowser(Browser):
|
||||
PROFILE = WeboobProfile(self.version)
|
||||
if self.browser is None:
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ from weboob.tools.misc import to_unicode
|
|||
from weboob.tools.log import getLogger
|
||||
|
||||
from weboob.tools.exceptions import ParseError
|
||||
from weboob.tools.browser2.elements import TableElement, ItemElement
|
||||
from weboob.tools.browser2.filters.standard import Filter, CleanText, CleanDecimal, TableCell
|
||||
from weboob.browser2.elements import TableElement, ItemElement
|
||||
from weboob.browser2.filters.standard import Filter, CleanText, CleanDecimal, TableCell
|
||||
|
||||
|
||||
__all__ = ['FrenchTransaction', 'AmericanTransaction']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue