backend move to tools
This commit is contained in:
parent
1847ea5f34
commit
0028e48b61
12 changed files with 20 additions and 19 deletions
|
|
@ -23,11 +23,11 @@ import os
|
||||||
from logging import warning
|
from logging import warning
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.chat import ICapChat
|
from weboob.capabilities.chat import ICapChat
|
||||||
from weboob.capabilities.messages import ICapMessages, ICapMessagesReply, Message
|
from weboob.capabilities.messages import ICapMessages, ICapMessagesReply, Message
|
||||||
from weboob.capabilities.dating import ICapDating, StatusField
|
from weboob.capabilities.dating import ICapDating, StatusField
|
||||||
from weboob.capabilities.contact import ICapContact, Contact, ProfileNode
|
from weboob.capabilities.contact import ICapContact, Contact, ProfileNode
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
from weboob.tools.browser import BrowserUnavailable
|
from weboob.tools.browser import BrowserUnavailable
|
||||||
|
|
||||||
from .browser import AuMBrowser
|
from .browser import AuMBrowser
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.bank import ICapBank, AccountNotFound
|
from weboob.capabilities.bank import ICapBank, AccountNotFound
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import BNPorc
|
from .browser import BNPorc
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.travel import ICapTravel, Station, Departure
|
from weboob.capabilities.travel import ICapTravel, Station, Departure
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import CanalTP
|
from .browser import CanalTP
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.bank import ICapBank, AccountNotFound
|
from weboob.capabilities.bank import ICapBank, AccountNotFound
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import Cragr
|
from .browser import Cragr
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.torrent import ICapTorrent
|
from weboob.capabilities.torrent import ICapTorrent
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import GazelleBrowser
|
from .browser import GazelleBrowser
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
from logging import debug
|
from logging import debug
|
||||||
|
|
||||||
from weboob.capabilities.video import ICapVideo
|
from weboob.capabilities.video import ICapVideo
|
||||||
from weboob.core.backend import BaseBackend
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import InaBrowser
|
from .browser import InaBrowser
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.travel import ICapTravel, Station, Departure
|
from weboob.capabilities.travel import ICapTravel, Station, Departure
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import Transilien
|
from .browser import Transilien
|
||||||
from .stations import STATIONS
|
from .stations import STATIONS
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.video import ICapVideo
|
from weboob.capabilities.video import ICapVideo
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import YoujizzBrowser
|
from .browser import YoujizzBrowser
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.video import ICapVideo
|
from weboob.capabilities.video import ICapVideo
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import YoupornBrowser
|
from .browser import YoupornBrowser
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.video import ICapVideo
|
from weboob.capabilities.video import ICapVideo
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
from .browser import YoutubeBrowser
|
from .browser import YoutubeBrowser
|
||||||
from .video import YoutubeVideo
|
from .video import YoutubeVideo
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ from xml.dom import minidom
|
||||||
# TODO store datetime objects instead of strings
|
# TODO store datetime objects instead of strings
|
||||||
# from datetime import datetime
|
# from datetime import datetime
|
||||||
|
|
||||||
from weboob.core.backend import BaseBackend
|
|
||||||
from weboob.capabilities.weather import ICapWeather, CityNotFound, Current, Forecast
|
from weboob.capabilities.weather import ICapWeather, CityNotFound, Current, Forecast
|
||||||
|
from weboob.tools.backend import BaseBackend
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['YWeatherBackend']
|
__all__ = ['YWeatherBackend']
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import os
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['BackendStorage', 'BaseBackend']
|
__all__ = ['BaseBackend']
|
||||||
|
|
||||||
|
|
||||||
class BackendStorage(object):
|
class BackendStorage(object):
|
||||||
|
|
@ -47,23 +47,24 @@ class BackendStorage(object):
|
||||||
if self.storage:
|
if self.storage:
|
||||||
return self.storage.save('backends', self.name)
|
return self.storage.save('backends', self.name)
|
||||||
|
|
||||||
|
|
||||||
class BaseBackend(object):
|
class BaseBackend(object):
|
||||||
# Module name.
|
# Backend name.
|
||||||
NAME = None
|
NAME = None
|
||||||
# Name of the maintainer of this module.
|
# Name of the maintainer of this backend.
|
||||||
MAINTAINER = '<unspecifier>'
|
MAINTAINER = '<unspecified>'
|
||||||
# Email address of the maintainer.
|
# Email address of the maintainer.
|
||||||
EMAIL = '<unspecified>'
|
EMAIL = '<unspecified>'
|
||||||
# Version of module (for information only).
|
# Version of backend (for information only).
|
||||||
VERSION = '<unspecified>'
|
VERSION = '<unspecified>'
|
||||||
# Description
|
# Description
|
||||||
DESCRIPTION = '<unspecified>'
|
DESCRIPTION = '<unspecified>'
|
||||||
# License of this module.
|
# License of this backend.
|
||||||
LICENSE = '<unspecified>'
|
LICENSE = '<unspecified>'
|
||||||
# Icon file path
|
# Icon file path
|
||||||
ICON = ''
|
ICON = ''
|
||||||
# Configuration required for this module. # Values must be ConfigField
|
# Configuration required for this backend.
|
||||||
# objects.
|
# Values must be ConfigField objects.
|
||||||
CONFIG = {}
|
CONFIG = {}
|
||||||
# Storage
|
# Storage
|
||||||
STORAGE = {}
|
STORAGE = {}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue