move icons to xdg standard dirs, add desktop files

closes #359
This commit is contained in:
Christophe Benz 2010-08-11 19:27:41 +02:00
commit 13f9fc07b2
36 changed files with 70 additions and 29 deletions

View file

@ -37,8 +37,6 @@ class ArteBackend(BaseBackend, ICapVideo):
VERSION = '0.2'
DESCRIPTION = 'Arte french TV'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = ArteBrowser
def get_video(self, _id):

View file

@ -46,7 +46,6 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesReply, ICapDating, ICapC
VERSION = '0.1'
LICENSE = 'GPLv3'
DESCRIPTION = u"“Adopte un mec” french dating website"
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),
'register': BaseBackend.ConfigField(default=False, description='Register as new account?'),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -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
@ -22,15 +23,14 @@ from weboob.tools.backend import BaseBackend
from .browser import BNPorc
class BNPorcBackend(BaseBackend, ICapBank):
NAME = 'bnporc'
MAINTAINER = 'Romain Bignon'
EMAIL = 'romain@peerfuse.org'
VERSION = '0.1'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
DESCRIPTION = 'BNP Paribas french bank\' website'
CONFIG = {'login': BaseBackend.ConfigField(description='Account ID'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True)
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

View file

@ -33,7 +33,6 @@ 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):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -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
@ -22,6 +23,7 @@ from weboob.tools.backend import BaseBackend
from .browser import Cragr
class CragrBackend(BaseBackend, ICapBank):
NAME = 'cragr'
MAINTAINER = 'Laurent Bachelier'
@ -29,8 +31,6 @@ 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),
'website': BaseBackend.ConfigField(description='What website to use', default='m.lefil.com'),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -37,8 +37,6 @@ 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),
'get_news': BaseBackend.ConfigField(default=True, description='Get newspapers'),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

View file

@ -37,8 +37,6 @@ 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'),
}
STORAGE = {'boards': {}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -33,8 +33,6 @@ 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),
'protocol': BaseBackend.ConfigField(description='Protocol to use ("http" or "https")', regexp='^(http|https)$'),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -34,7 +34,6 @@ class GeolocIpBackend(BaseBackend, ICapGeolocIp):
VERSION = '0.1'
LICENSE = 'GPLv3'
DESCRIPTION = u"IP Adresses geolocalisation"
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
CONFIG = {'email': BaseBackend.ConfigField(description='Username on website'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
}

View file

@ -35,8 +35,6 @@ class InaBackend(BaseBackend, ICapVideo):
VERSION = '0.1'
DESCRIPTION = 'INA french video archives'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = InaBrowser
def get_video(self, _id):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -31,7 +31,6 @@ 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):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -37,8 +37,6 @@ class YahooBackend(BaseBackend, ICapWeather):
VERSION = '0.1'
DESCRIPTION = 'Yahoo'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
WEATHER_URL = 'http://weather.yahooapis.com/forecastrss?w=%s&u=%s'
def iter_city_search(self, pattern):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 B

View file

@ -37,8 +37,6 @@ 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
def get_video(self, _id):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -37,8 +37,6 @@ 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
def get_video(self, _id):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -38,8 +38,6 @@ 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
def get_video(self, _id):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -24,6 +24,7 @@ from logging import debug, error, exception, warning
import os
import re
import stat
import xdg.IconTheme
from weboob.capabilities.cap import ICap
from weboob.tools.backend import BaseBackend
@ -69,6 +70,8 @@ class Backend(object):
@property
def icon_path(self):
if self.klass.ICON is None:
self.klass.ICON = xdg.IconTheme.getIconPath(self.klass.NAME)
return self.klass.ICON
def iter_caps(self):

View file

@ -66,7 +66,7 @@ class BaseBackend(object):
# License of this backend.
LICENSE = '<unspecified>'
# Icon file path
ICON = ''
ICON = None
# Configuration required for this backend.
# Values must be ConfigField objects.
CONFIG = {}