Commit 490d0a6a authored by Romain Bignon's avatar Romain Bignon

add logo for each backends

parent 310571e9
......@@ -15,6 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
from weboob.capabilities.travel import ICapTravel, Station, Departure
from weboob.tools.backend import BaseBackend
......@@ -32,6 +33,7 @@ class CanalTPBackend(BaseBackend, ICapTravel):
VERSION = '0.1'
LICENSE = 'GPLv3'
DESCRIPTION = "French trains"
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = CanalTP
def iter_station_search(self, pattern):
......
......@@ -15,6 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
from weboob.capabilities.bank import ICapBank, AccountNotFound
from weboob.tools.backend import BaseBackend
......@@ -28,6 +29,7 @@ class CragrBackend(BaseBackend, ICapBank):
VERSION = '0.1'
DESCRIPTION = 'Credit Agricole french bank\'s website'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
CONFIG = {'login': BaseBackend.ConfigField(description='Account ID'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
......
......@@ -17,6 +17,8 @@
from __future__ import with_statement
import os
from weboob.tools.backend import BaseBackend
from weboob.tools.browser import BrowserUnavailable
from weboob.capabilities.messages import ICapMessages, ICapMessagesReply, Message
......@@ -35,6 +37,7 @@ class DLFPBackend(BaseBackend, ICapMessages, ICapMessagesReply):
VERSION = '0.1'
LICENSE = 'GPLv3'
DESCRIPTION = "Da Linux French Page"
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
CONFIG = {'username': BaseBackend.ConfigField(description='Username on website'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
......
......@@ -19,6 +19,7 @@
from __future__ import with_statement
from logging import warning
import os
from weboob.capabilities.messages import ICapMessages, Message
from weboob.tools.backend import BaseBackend
......@@ -36,6 +37,7 @@ class FourChanBackend(BaseBackend, ICapMessages):
VERSION = '0.1'
LICENSE = 'GPLv3'
DESCRIPTION = "4chan website"
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
CONFIG = {'boards': BaseBackend.ConfigField(description='Boards'),
}
......
......@@ -15,6 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
from weboob.capabilities.torrent import ICapTorrent
from weboob.tools.backend import BaseBackend
......@@ -32,6 +33,7 @@ class GazelleBackend(BaseBackend, ICapTorrent):
VERSION = '0.1'
DESCRIPTION = 'gazelle bittorrent tracker'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
CONFIG = {'username': BaseBackend.ConfigField(description='Username on website'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
......
......@@ -35,7 +35,7 @@ class InaBackend(BaseBackend, ICapVideo):
VERSION = '0.1'
DESCRIPTION = 'INA french video archives'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.gif')
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = InaBrowser
......
......@@ -16,6 +16,8 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
from weboob.capabilities.travel import ICapTravel, Station, Departure
from weboob.tools.backend import BaseBackend
......@@ -29,6 +31,7 @@ class TransilienBackend(BaseBackend, ICapTravel):
VERSION = '0.1'
LICENSE = 'GPLv3'
DESCRIPTION = "Transports in Paris"
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = Transilien
def iter_station_search(self, pattern):
......
......@@ -18,6 +18,8 @@
from __future__ import with_statement
import os
from weboob.capabilities.video import ICapVideo
from weboob.tools.backend import BaseBackend
......@@ -35,6 +37,7 @@ class YoujizzBackend(BaseBackend, ICapVideo):
VERSION = '0.1'
DESCRIPTION = 'Youjizz videos website'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = YoujizzBrowser
......
......@@ -18,6 +18,8 @@
from __future__ import with_statement
import os
from weboob.capabilities.video import ICapVideo
from weboob.tools.backend import BaseBackend
......@@ -35,6 +37,7 @@ class YoupornBackend(BaseBackend, ICapVideo):
VERSION = '0.1'
DESCRIPTION = 'Youporn videos website'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = YoupornBrowser
......
......@@ -19,6 +19,7 @@
from __future__ import with_statement
import datetime
import os
from weboob.capabilities.video import ICapVideo
from weboob.tools.backend import BaseBackend
......@@ -37,6 +38,7 @@ class YoutubeBackend(BaseBackend, ICapVideo):
VERSION = '0.1'
DESCRIPTION = 'Youtube videos website'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = YoutubeBrowser
......
......@@ -18,6 +18,7 @@
import urllib2
from xml.dom import minidom
import os
# TODO store datetime objects instead of strings
# from datetime import datetime
......@@ -36,6 +37,7 @@ class YWeatherBackend(BaseBackend, ICapWeather):
VERSION = '0.1'
DESCRIPTION = 'Yahoo Weather'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
URL = 'http://weather.yahooapis.com/forecastrss?w=%s&u=%s'
......
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