Commit fa06840b authored by hydrargyrum's avatar hydrargyrum
Browse files

rename a bunch of apps

Use woob-{name} where name is most often the cap name.
E.g. boobank -> woob-bank
parent d04b4bc6
......@@ -101,40 +101,40 @@ tests_require =
[options.entry_points]
console_scripts =
boobands = weboob.applications.boobands:Boobands.run
boobank = weboob.applications.boobank:Boobank.run
boobathon = weboob.applications.boobathon:Boobathon.run
boobcoming = weboob.applications.boobcoming:Boobcoming.run
boobill = weboob.applications.boobill:Boobill.run
booblyrics = weboob.applications.booblyrics:Booblyrics.run
boobmsg = weboob.applications.boobmsg:Boobmsg.run
boobooks = weboob.applications.boobooks:Boobooks.run
boobsize = weboob.applications.boobsize:Boobsize.run
boobtracker = weboob.applications.boobtracker:BoobTracker.run
boomoney = weboob.applications.boomoney:Boomoney.run
boorpg = weboob.applications.boorpg:BooRPG.run
cineoob = weboob.applications.cineoob:Cineoob.run
comparoob = weboob.applications.comparoob:Comparoob.run
cookboob = weboob.applications.cookboob:Cookboob.run
flatboob = weboob.applications.flatboob:Flatboob.run
galleroob = weboob.applications.galleroob:Galleroob.run
geolooc = weboob.applications.geolooc:Geolooc.run
handjoob = weboob.applications.handjoob:Handjoob.run
havedate = weboob.applications.havedate:HaveDate.run
monboob = weboob.applications.monboob:Monboob.run
parceloob = weboob.applications.parceloob:Parceloob.run
pastoob = weboob.applications.pastoob:Pastoob.run
radioob = weboob.applications.radioob:Radioob.run
shopoob = weboob.applications.shopoob:Shopoob.run
suboob = weboob.applications.suboob:Suboob.run
translaboob = weboob.applications.translaboob:Translaboob.run
traveloob = weboob.applications.traveloob:Traveloob.run
videoob = weboob.applications.videoob:Videoob.run
webcontentedit = weboob.applications.webcontentedit:WebContentEdit.run
weboob-cli = weboob.applications.weboobcli:WeboobCli.run
weboob-config = weboob.applications.weboobcfg:WeboobCfg.run
weboob-debug = weboob.applications.weboobdebug:WeboobDebug.run
weboob-repos = weboob.applications.weboobrepos:WeboobRepos.run
weboorrents = weboob.applications.weboorrents:Weboorrents.run
wetboobs = weboob.applications.wetboobs:WetBoobs.run
weboob = weboob.applications.weboobmain:WeboobMain.run
woob-bands = weboob.applications.bands:Appbands.run
woob-bank = weboob.applications.bank:Appbank.run
woob-athon = weboob.applications.woobathon:AppWoobathon.run
woob-calendar = weboob.applications.calendar:AppCalendar.run
woob-bill = weboob.applications.bill:Appbill.run
woob-lyrics = weboob.applications.lyrics:AppLyrics.run
woob-msg = weboob.applications.msg:AppMsg.run
woob-books = weboob.applications.books:AppBooks.run
woob-gauge = weboob.applications.gauge:AppGauge.run
woob-tracker = weboob.applications.bugtracker:AppBugTracker.run
woob-money = weboob.applications.money:AppMoney.run
woob-rpg = weboob.applications.rpg:AppRPG.run
woob-cinema = weboob.applications.cinema:AppCinema.run
woob-compare = weboob.applications.pricecompare:AppPriceCompare.run
woob-cook = weboob.applications.recipes:AppRecipes.run
woob-housing = weboob.applications.housing:AppHousing.run
woob-gallery = weboob.applications.gallery:AppGallery.run
woob-geolocip = weboob.applications.geolocip:AppGeolocIP.run
woob-job = weboob.applications.job:AppJob.run
woob-dating = weboob.applications.dating:AppDating.run
woob-smtp = weboob.applications.smtp:AppSmtp.run
woob-parcel = weboob.applications.parcel:AppParcel.run
woob-paste = weboob.applications.paste:AppPaste.run
woob-radio = weboob.applications.radio:AppRadio.run
woob-shop = weboob.applications.shop:AppShop.run
woob-subtitles = weboob.applications.subtitles:AppSubtitles.run
woob-translate = weboob.applications.translate:AppTranslate.run
woob-travel = weboob.applications.travel:AppTravel.run
woob-video = weboob.applications.video:AppVideo.run
woob-contentedit = weboob.applications.contentedit:AppContentEdit.run
woob-cli = weboob.applications.cli:AppCli.run
woob-config = weboob.applications.config:AppConfig.run
woob-debug = weboob.applications.debug:AppDebug.run
woob-repos = weboob.applications.repos:AppWoobRepos.run
woob-torrent = weboob.applications.torrent:AppTorrent.run
woob-weather = weboob.applications.weather:AppWeather.run
woob = weboob.applications.main:WoobMain.run
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Lesser General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .boobands import Boobands
from .bands import Appbands
__all__ = ['Boobands']
__all__ = ['Appbands']
......@@ -24,7 +24,7 @@
from weboob.tools.application.formatters.iformatter import PrettyFormatter
__all__ = ['Boobands', 'BandInfoFormatter', 'BandListFormatter', 'FavoritesFormatter']
__all__ = ['Appbands', 'BandInfoFormatter', 'BandListFormatter', 'FavoritesFormatter']
class BandInfoFormatter(PrettyFormatter):
......@@ -107,8 +107,8 @@ def get_description(self, obj):
class Boobands(ReplApplication):
APPNAME = 'boobands'
class Appbands(ReplApplication):
APPNAME = 'woob-bands'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2018-YEAR Quentin Defenouillere'
DESCRIPTION = "Console application allowing to display music bands and offer music suggestions."
......
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .boorpg import BooRPG
from .bank import Appbank
__all__ = ['BooRPG']
__all__ = ['Appbank']
......@@ -52,7 +52,7 @@
from weboob.tools.misc import to_unicode
__all__ = ['Boobank']
__all__ = ['Appbank']
class OfxFormatter(IFormatter):
......@@ -499,8 +499,8 @@ def flush(self):
)
class Boobank(CaptchaMixin, ReplApplication):
APPNAME = 'boobank'
class Appbank(CaptchaMixin, ReplApplication):
APPNAME = 'woob-bank'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon, Christophe Benz'
CAPS = CapBank
......@@ -597,7 +597,7 @@ def bcall_error_handler(self, backend, error, backtrace):
self.solve_captcha(job, backend)
return False
else:
return super(Boobank, self).bcall_error_handler(backend, error, backtrace)
return super(Appbank, self).bcall_error_handler(backend, error, backtrace)
def load_default_backends(self):
self.load_backends(CapBank, storage=self.create_storage())
......@@ -996,4 +996,4 @@ def do_emitters(self, line):
def main(self, argv):
self.load_config()
return super(Boobank, self).main(argv)
return super(Appbank, self).main(argv)
......@@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .boobill import Boobill
from .bill import AppBill
__all__ = ['Boobill']
__all__ = ['AppBill']
......@@ -33,7 +33,7 @@
from weboob.capabilities.captcha import exception_to_job
__all__ = ['Boobill']
__all__ = ['AppBill']
class SubscriptionsFormatter(PrettyFormatter):
......@@ -45,8 +45,8 @@ def get_title(self, obj):
return obj.label
class Boobill(CaptchaMixin, ReplApplication):
APPNAME = 'boobill'
class AppBill(CaptchaMixin, ReplApplication):
APPNAME = 'woob-bill'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2012-YEAR Florent Fourcot'
DESCRIPTION = 'Console application allowing to get/download documents and bills.'
......@@ -131,7 +131,7 @@ def do_details(self, id):
# TODO: do it, and use exec_method here. Code is obsolete
mysum = Detail()
mysum.label = u"Sum"
mysum.infos = u"Generated by boobill"
mysum.infos = u"Generated by bill"
mysum.price = Decimal("0.")
self.start_format()
......
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .boobooks import Boobooks
from .books import AppBooks
__all__ = ['Boobooks']
__all__ = ['AppBooks']
......@@ -23,7 +23,7 @@
from weboob.tools.application.repl import ReplApplication
from weboob.tools.application.formatters.iformatter import PrettyFormatter
__all__ = ['Boobooks']
__all__ = ['AppBooks']
class RentedListFormatter(PrettyFormatter):
......@@ -38,8 +38,8 @@ def get_title(self, obj):
return s
class Boobooks(ReplApplication):
APPNAME = 'boobooks'
class AppBooks(ReplApplication):
APPNAME = 'woob-books'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2012-YEAR Jeremy Monnet'
CAPS = CapBook
......
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .boobtracker import BoobTracker
from .bugtracker import AppBugTracker
__all__ = ['BoobTracker']
__all__ = ['AppBugTracker']
......@@ -37,7 +37,7 @@
from weboob.tools.date import parse_french_date
__all__ = ['BoobTracker']
__all__ = ['AppBugTracker']
try:
......@@ -110,8 +110,8 @@ def get_description(self, obj):
return obj.category
class BoobTracker(ReplApplication):
APPNAME = 'boobtracker'
class AppBugTracker(ReplApplication):
APPNAME = 'woob-bugtracker'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2011-YEAR Romain Bignon'
DESCRIPTION = "Console application allowing to create, edit, view bug tracking issues."
......@@ -292,7 +292,7 @@ def issue2text(self, issue, backend=None):
if backend is not None and 'username' in backend.config:
sender = backend.config['username'].get()
else:
sender = os.environ.get('USERNAME', 'boobtracker')
sender = os.environ.get('USERNAME', 'bugtracker')
output = u'From: %s\n' % sender
for key, (list_name, is_list_object) in self.ISSUE_FIELDS:
value = None
......
......@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Lesser General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .boobcoming import Boobcoming
from .calendar import AppCalendar
__all__ = ['Boobcoming']
__all__ = ['AppCalendar']
......@@ -29,7 +29,7 @@
from weboob.tools.application.repl import ReplApplication, defaultcount
from weboob.tools.config.yamlconfig import YamlConfig
__all__ = ['Boobcoming']
__all__ = ['AppCalendar']
class UpcomingSimpleFormatter(IFormatter):
......@@ -194,8 +194,8 @@ def format_obj(self, obj, alias):
return result
class Boobcoming(ReplApplication):
APPNAME = 'boobcoming'
class AppCalendar(ReplApplication):
APPNAME = 'woob-calendar'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2012-YEAR Bezleputh'
DESCRIPTION = "Console application to see upcoming events."
......@@ -226,7 +226,7 @@ def comp_object(self, obj1, obj2):
return 1
return -1
else:
return super(Boobcoming, self).comp_object(obj1, obj2)
return super(AppCalendar, self).comp_object(obj1, obj2)
def select_values(self, values_from, values_to, query_str):
r = 'notempty'
......
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .cineoob import Cineoob
from .cinema import AppCinema
__all__ = ['Cineoob']
__all__ = ['AppCinema']
......@@ -32,7 +32,7 @@
from weboob.core import CallErrors
__all__ = ['Cineoob']
__all__ = ['AppCinema']
ROLE_LIST = ['actor', 'director', 'writer', 'composer', 'producer']
COUNTRY_LIST = ['us', 'fr', 'de', 'jp']
......@@ -174,8 +174,8 @@ def get_description(self, obj):
return result
class Cineoob(ReplApplication):
APPNAME = 'cineoob'
class AppCinema(ReplApplication):
APPNAME = 'woob-cinema'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2013-YEAR Julien Veyssier'
DESCRIPTION = "Console application allowing to search for movies and persons on various cinema databases " \
......
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .geolooc import Geolooc
from .cli import AppCli
__all__ = ['Geolooc']
__all__ = ['AppCli']
......@@ -22,11 +22,11 @@
from weboob.tools.application.repl import ReplApplication
__all__ = ['WeboobCli']
__all__ = ['AppCli']
class WeboobCli(ReplApplication):
APPNAME = 'weboob-cli'
class AppCli(ReplApplication):
APPNAME = 'woob-cli'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon'
SYNOPSIS = 'Usage: %prog [-dqv] [-b backends] [-cnfs] capability method [arguments..]\n'
......
# -*- coding: utf-8 -*-
from .comparoob import Comparoob
__all__ = ['Comparoob']
......@@ -18,6 +18,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from .havedate import HaveDate
from .config import AppConfig
__all__ = ['HaveDate']
__all__ = ['AppConfig']
......@@ -28,7 +28,7 @@
from weboob.tools.application.console import ConsoleProgress
from weboob.tools.application.formatters.iformatter import IFormatter
__all__ = ['WeboobCfg']
__all__ = ['AppConfig']
class ModuleInfoFormatter(IFormatter):
......@@ -60,8 +60,8 @@ def format_dict(self, minfo):
return result
class WeboobCfg(ReplApplication):
APPNAME = 'weboob-config'
class AppConfig(ReplApplication):
APPNAME = 'woob-config'
VERSION = '2.1'
COPYRIGHT = 'Copyright(C) 2010-YEAR Christophe Benz, Romain Bignon'
DESCRIPTION = "Weboob-Config is a console application to add/edit/remove backends, " \
......
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