Commit d02c2d66 authored by Roger Philibert's avatar Roger Philibert Committed by hydrargyrum
Browse files

modules: make "woob" the main import

parent d11cbf4f
......@@ -17,8 +17,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.browser.exceptions import BrowserHTTPNotFound
from weboob.browser import PagesBrowser, URL
from woob.browser.exceptions import BrowserHTTPNotFound
from woob.browser import PagesBrowser, URL
from .pages import RecipePage, ResultsPage
......
......@@ -17,9 +17,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.recipe import CapRecipe, Recipe
from weboob.tools.backend import Module
from weboob.tools.compat import unicode
from woob.capabilities.recipe import CapRecipe, Recipe
from woob.tools.backend import Module
from woob.tools.compat import unicode
from .browser import SevenFiftyGramsBrowser
......
......@@ -18,16 +18,16 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.recipe import Recipe, Comment
from weboob.capabilities.base import NotAvailable
from weboob.capabilities.image import BaseImage, Thumbnail
from weboob.browser.pages import HTMLPage, pagination
from weboob.browser.elements import ItemElement, ListElement, method
from weboob.browser.filters.standard import CleanText, Regexp, Env, CleanDecimal, Eval
from weboob.browser.filters.json import Dict, NotFound
from woob.capabilities.recipe import Recipe, Comment
from woob.capabilities.base import NotAvailable
from woob.capabilities.image import BaseImage, Thumbnail
from woob.browser.pages import HTMLPage, pagination
from woob.browser.elements import ItemElement, ListElement, method
from woob.browser.filters.standard import CleanText, Regexp, Env, CleanDecimal, Eval
from woob.browser.filters.json import Dict, NotFound
from datetime import datetime, date, time
from dateutil.parser import parse as parse_date
from weboob.tools.json import json
from woob.tools.json import json
class Time(Dict):
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.test import BackendTest
from woob.tools.test import BackendTest
import itertools
......
......@@ -17,8 +17,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.browser import PagesBrowser, URL
from weboob.tools.compat import quote_plus
from woob.browser import PagesBrowser, URL
from woob.tools.compat import quote_plus
from .pages import SearchPage, AdvertPage, AdvertsJsonPage
......
......@@ -19,9 +19,9 @@
from collections import OrderedDict
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import Value
from weboob.capabilities.job import CapJob, BaseJobAdvert
from woob.tools.backend import Module, BackendConfig
from woob.tools.value import Value
from woob.capabilities.job import CapJob, BaseJobAdvert
from .browser import AdeccoBrowser
__all__ = ['AdeccoModule']
......
......@@ -18,16 +18,16 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
import requests
from weboob.browser.pages import HTMLPage, pagination, JsonPage
from weboob.browser.elements import ItemElement, method, DictElement
from woob.browser.pages import HTMLPage, pagination, JsonPage
from woob.browser.elements import ItemElement, method, DictElement
from weboob.browser.filters.standard import CleanText, Regexp, Date
from weboob.browser.filters.html import CleanHTML
from weboob.browser.filters.json import Dict
from woob.browser.filters.standard import CleanText, Regexp, Date
from woob.browser.filters.html import CleanHTML
from woob.browser.filters.json import Dict
from weboob.browser.filters.javascript import JSVar
from weboob.capabilities.job import BaseJobAdvert
from weboob.capabilities.base import empty
from woob.browser.filters.javascript import JSVar
from woob.capabilities.job import BaseJobAdvert
from woob.capabilities.base import empty
class SearchPage(HTMLPage):
......
......@@ -18,8 +18,8 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.test import BackendTest
from weboob.tools.value import Value
from woob.tools.test import BackendTest
from woob.tools.value import Value
import itertools
......
......@@ -20,7 +20,7 @@
from __future__ import unicode_literals
from weboob.browser import AbstractBrowser
from woob.browser import AbstractBrowser
class AferBrowser(AbstractBrowser):
......
......@@ -19,8 +19,8 @@
from __future__ import unicode_literals
from weboob.capabilities.wealth import CapBankWealth
from weboob.tools.backend import AbstractModule
from woob.capabilities.wealth import CapBankWealth
from woob.tools.backend import AbstractModule
from .browser import AferBrowser
......
......@@ -18,10 +18,10 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.browser import PagesBrowser, URL
from woob.browser import PagesBrowser, URL
from .pages import BasePage
from weboob.tools.compat import urlparse
from woob.tools.compat import urlparse
import re
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS
from woob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS
class AgendaculturelEvent(BaseCalendarEvent):
......
......@@ -18,9 +18,9 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import Value
from weboob.capabilities.calendar import CapCalendarEvent, CATEGORIES
from woob.tools.backend import Module, BackendConfig
from woob.tools.value import Value
from woob.capabilities.calendar import CapCalendarEvent, CATEGORIES
from .browser import AgendaculturelBrowser
from .calendar import AgendaculturelEvent
......
......@@ -18,13 +18,13 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.browser.pages import HTMLPage
from weboob.browser.elements import ItemElement, ListElement, method
from weboob.browser.filters.standard import CleanText, Date, Regexp, Filter, Env, Format, Decode, Time, Type
from weboob.browser.filters.html import CleanHTML, XPath
from weboob.browser.filters.json import Dict
from woob.browser.pages import HTMLPage
from woob.browser.elements import ItemElement, ListElement, method
from woob.browser.filters.standard import CleanText, Date, Regexp, Filter, Env, Format, Decode, Time, Type
from woob.browser.filters.html import CleanHTML, XPath
from woob.browser.filters.json import Dict
from weboob.capabilities.calendar import CATEGORIES
from woob.capabilities.calendar import CATEGORIES
from .calendar import AgendaculturelEvent
from datetime import datetime, time
......@@ -62,7 +62,7 @@ def parse(self, el):
_json = CleanText('.')(XPath('//script[@type="application/ld+json"][1]')(el)[0])
try:
from weboob.tools.json import json
from woob.tools.json import json
self.env['_json'] = json.loads(_json)
except ValueError:
self.env['_json'] = {}
......
......@@ -18,8 +18,8 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.test import BackendTest
from weboob.tools.value import Value
from woob.tools.test import BackendTest
from woob.tools.value import Value
from datetime import datetime
......
......@@ -18,7 +18,7 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.browser import PagesBrowser, URL
from woob.browser import PagesBrowser, URL
from .pages import EventListPage, EventPage
from datetime import timedelta, date
......
......@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS, CATEGORIES
from woob.capabilities.calendar import BaseCalendarEvent, TRANSP, STATUS, CATEGORIES
class AgendaDuLibreCalendarEvent(BaseCalendarEvent):
......
......@@ -19,9 +19,9 @@
from collections import OrderedDict
from weboob.tools.backend import Module, BackendConfig
from weboob.capabilities.calendar import CapCalendarEvent, CATEGORIES
from weboob.tools.value import Value
from woob.tools.backend import Module, BackendConfig
from woob.capabilities.calendar import CapCalendarEvent, CATEGORIES
from woob.tools.value import Value
from .browser import AgendadulibreBrowser
......
......@@ -22,11 +22,11 @@
from datetime import time, datetime, date
from weboob.browser.pages import HTMLPage, pagination
from weboob.browser.elements import ItemElement, ListElement, method
from weboob.browser.filters.standard import Regexp, CleanText, DateTime, Env, Format, BrowserURL
from weboob.browser.filters.html import Link, XPath, CleanHTML
from weboob.tools.date import parse_french_date
from woob.browser.pages import HTMLPage, pagination
from woob.browser.elements import ItemElement, ListElement, method
from woob.browser.filters.standard import Regexp, CleanText, DateTime, Env, Format, BrowserURL
from woob.browser.filters.html import Link, XPath, CleanHTML
from woob.tools.date import parse_french_date
from .calendar import AgendaDuLibreCalendarEvent
......
......@@ -18,8 +18,8 @@
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
from weboob.tools.test import BackendTest
from weboob.tools.value import Value
from woob.tools.test import BackendTest
from woob.tools.value import Value
from datetime import datetime
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment