From d6da9843db3b54087fa8817faf10972198c34e53 Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 17 Oct 2014 17:31:26 +0200 Subject: [PATCH] Set copyright in applications --- weboob/applications/boobank/boobank.py | 2 +- weboob/applications/boobathon/boobathon.py | 2 +- weboob/applications/boobcoming/boobcoming.py | 2 +- weboob/applications/boobill/boobill.py | 2 +- weboob/applications/booblyrics/booblyrics.py | 2 +- weboob/applications/boobmsg/boobmsg.py | 2 +- weboob/applications/boobooks/boobooks.py | 2 +- weboob/applications/boobsize/boobsize.py | 2 +- weboob/applications/boobtracker/boobtracker.py | 2 +- weboob/applications/cineoob/cineoob.py | 2 +- weboob/applications/comparoob/comparoob.py | 2 +- weboob/applications/cookboob/cookboob.py | 2 +- weboob/applications/flatboob/flatboob.py | 2 +- weboob/applications/galleroob/galleroob.py | 2 +- weboob/applications/geolooc/geolooc.py | 2 +- weboob/applications/handjoob/handjoob.py | 2 +- weboob/applications/havedate/havedate.py | 2 +- weboob/applications/masstransit/masstransit.py | 2 +- weboob/applications/monboob/monboob.py | 2 +- weboob/applications/parceloob/parceloob.py | 2 +- weboob/applications/pastoob/pastoob.py | 2 +- weboob/applications/qboobmsg/qboobmsg.py | 2 +- weboob/applications/qcineoob/qcineoob.py | 2 +- weboob/applications/qcookboob/qcookboob.py | 2 +- weboob/applications/qflatboob/qflatboob.py | 2 +- weboob/applications/qhandjoob/qhandjoob.py | 2 +- weboob/applications/qhavedate/qhavedate.py | 2 +- weboob/applications/qvideoob/qvideoob.py | 2 +- weboob/applications/qwebcontentedit/qwebcontentedit.py | 2 +- weboob/applications/qweboobcfg/qweboobcfg.py | 2 +- weboob/applications/radioob/radioob.py | 2 +- weboob/applications/suboob/suboob.py | 2 +- weboob/applications/translaboob/translaboob.py | 2 +- weboob/applications/traveloob/traveloob.py | 2 +- weboob/applications/videoob/videoob.py | 2 +- weboob/applications/webcontentedit/webcontentedit.py | 2 +- weboob/applications/weboobcfg/weboobcfg.py | 2 +- weboob/applications/weboobcli/weboobcli.py | 2 +- weboob/applications/weboobdebug/weboobdebug.py | 2 +- weboob/applications/weboobrepos/weboobrepos.py | 2 +- weboob/applications/weboorrents/weboorrents.py | 2 +- weboob/applications/wetboobs/wetboobs.py | 2 +- weboob/tools/application/base.py | 4 +++- weboob/tools/application/repl.py | 4 +++- 44 files changed, 48 insertions(+), 44 deletions(-) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index ee241f95fc..44fda492af 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -284,7 +284,7 @@ def flush(self): class Boobank(ReplApplication): APPNAME = 'boobank' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon, Christophe Benz' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon, Christophe Benz' CAPS = CapBank DESCRIPTION = "Console application allowing to list your bank accounts and get their balance, " \ "display accounts history and coming bank operations, and transfer money from an account to " \ diff --git a/weboob/applications/boobathon/boobathon.py b/weboob/applications/boobathon/boobathon.py index 09c30c34ef..d46262fe7d 100644 --- a/weboob/applications/boobathon/boobathon.py +++ b/weboob/applications/boobathon/boobathon.py @@ -279,7 +279,7 @@ def save(self, message): class Boobathon(ReplApplication): APPNAME = 'boobathon' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2011-YEAR Romain Bignon' DESCRIPTION = 'Console application to participate to a Boobathon.' SHORT_DESCRIPTION = "participate in a Boobathon" CAPS = CapContent diff --git a/weboob/applications/boobcoming/boobcoming.py b/weboob/applications/boobcoming/boobcoming.py index 9800506a9a..63853a3868 100644 --- a/weboob/applications/boobcoming/boobcoming.py +++ b/weboob/applications/boobcoming/boobcoming.py @@ -141,7 +141,7 @@ def format_obj(self, obj, alias): class Boobcoming(ReplApplication): APPNAME = 'boobcoming' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Bezleputh' + COPYRIGHT = 'Copyright(C) 2012-YEAR Bezleputh' DESCRIPTION = "Console application to see upcoming events." SHORT_DESCRIPTION = "see upcoming events" CAPS = CapCalendarEvent diff --git a/weboob/applications/boobill/boobill.py b/weboob/applications/boobill/boobill.py index bd0e6bd57a..a2d3a77da1 100644 --- a/weboob/applications/boobill/boobill.py +++ b/weboob/applications/boobill/boobill.py @@ -42,7 +42,7 @@ def get_title(self, obj): class Boobill(ReplApplication): APPNAME = 'boobill' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Florent Fourcot' + COPYRIGHT = 'Copyright(C) 2012-YEAR Florent Fourcot' DESCRIPTION = 'Console application allowing to get and download bills.' SHORT_DESCRIPTION = "get and download bills" CAPS = CapBill diff --git a/weboob/applications/booblyrics/booblyrics.py b/weboob/applications/booblyrics/booblyrics.py index 00f06d44aa..7480316e8d 100644 --- a/weboob/applications/booblyrics/booblyrics.py +++ b/weboob/applications/booblyrics/booblyrics.py @@ -57,7 +57,7 @@ def get_description(self, obj): class Booblyrics(ReplApplication): APPNAME = 'booblyrics' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier' + COPYRIGHT = 'Copyright(C) 2013-YEAR Julien Veyssier' DESCRIPTION = "Console application allowing to search for song lyrics on various websites." SHORT_DESCRIPTION = "search and display song lyrics" CAPS = CapLyrics diff --git a/weboob/applications/boobmsg/boobmsg.py b/weboob/applications/boobmsg/boobmsg.py index ecde81316e..063cfd7b81 100644 --- a/weboob/applications/boobmsg/boobmsg.py +++ b/weboob/applications/boobmsg/boobmsg.py @@ -236,7 +236,7 @@ def format_obj(self, obj, alias=None): class Boobmsg(ReplApplication): APPNAME = 'boobmsg' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Christophe Benz' + COPYRIGHT = 'Copyright(C) 2010-YEAR Christophe Benz' DESCRIPTION = "Console application allowing to send messages on various websites and " \ "to display message threads and contents." SHORT_DESCRIPTION = "send and receive message threads" diff --git a/weboob/applications/boobooks/boobooks.py b/weboob/applications/boobooks/boobooks.py index 1e5cd37003..8a8295fc70 100644 --- a/weboob/applications/boobooks/boobooks.py +++ b/weboob/applications/boobooks/boobooks.py @@ -41,7 +41,7 @@ def get_title(self, obj): class Boobooks(ReplApplication): APPNAME = 'boobooks' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Jeremy Monnet' + COPYRIGHT = 'Copyright(C) 2012-YEAR Jeremy Monnet' CAPS = CapBook DESCRIPTION = "Console application allowing to list your books rented or booked at the library, " \ "book and search new ones, get your booking history (if available)." diff --git a/weboob/applications/boobsize/boobsize.py b/weboob/applications/boobsize/boobsize.py index 5d196ef006..8a1413ae38 100644 --- a/weboob/applications/boobsize/boobsize.py +++ b/weboob/applications/boobsize/boobsize.py @@ -95,7 +95,7 @@ def format_obj(self, obj, alias): class Boobsize(ReplApplication): APPNAME = 'Boobsize' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Florent Fourcot' + COPYRIGHT = 'Copyright(C) 2013-YEAR Florent Fourcot' DESCRIPTION = "Console application allowing to display various sensors and gauges values." SHORT_DESCRIPTION = "display sensors and gauges values" CAPS = (CapGauge) diff --git a/weboob/applications/boobtracker/boobtracker.py b/weboob/applications/boobtracker/boobtracker.py index 09deb28dc7..1a3957452b 100644 --- a/weboob/applications/boobtracker/boobtracker.py +++ b/weboob/applications/boobtracker/boobtracker.py @@ -106,7 +106,7 @@ def get_description(self, obj): class BoobTracker(ReplApplication): APPNAME = 'boobtracker' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2011-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to create, edit, view bug tracking issues." SHORT_DESCRIPTION = "manage bug tracking issues" CAPS = CapBugTracker diff --git a/weboob/applications/cineoob/cineoob.py b/weboob/applications/cineoob/cineoob.py index 0e632390d8..fdc1a2a781 100644 --- a/weboob/applications/cineoob/cineoob.py +++ b/weboob/applications/cineoob/cineoob.py @@ -177,7 +177,7 @@ def get_description(self, obj): class Cineoob(ReplApplication): APPNAME = 'cineoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier' + COPYRIGHT = 'Copyright(C) 2013-YEAR Julien Veyssier' DESCRIPTION = "Console application allowing to search for movies and persons on various cinema databases " \ ", list persons related to a movie, list movies related to a person and list common movies " \ "of two persons." diff --git a/weboob/applications/comparoob/comparoob.py b/weboob/applications/comparoob/comparoob.py index af966b42e2..e3d898cbf6 100644 --- a/weboob/applications/comparoob/comparoob.py +++ b/weboob/applications/comparoob/comparoob.py @@ -75,7 +75,7 @@ def get_description(self, obj): class Comparoob(ReplApplication): APPNAME = 'comparoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2012-YEAR Romain Bignon' DESCRIPTION = "Console application to compare products." SHORT_DESCRIPTION = "compare products" DEFAULT_FORMATTER = 'table' diff --git a/weboob/applications/cookboob/cookboob.py b/weboob/applications/cookboob/cookboob.py index a8990eec87..fc4521565c 100644 --- a/weboob/applications/cookboob/cookboob.py +++ b/weboob/applications/cookboob/cookboob.py @@ -75,7 +75,7 @@ def get_description(self, obj): class Cookboob(ReplApplication): APPNAME = 'cookboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier' + COPYRIGHT = 'Copyright(C) 2013-YEAR Julien Veyssier' DESCRIPTION = "Console application allowing to search for recipes on various websites." SHORT_DESCRIPTION = "search and consult recipes" CAPS = CapRecipe diff --git a/weboob/applications/flatboob/flatboob.py b/weboob/applications/flatboob/flatboob.py index 3806be75d9..99a06ff679 100644 --- a/weboob/applications/flatboob/flatboob.py +++ b/weboob/applications/flatboob/flatboob.py @@ -81,7 +81,7 @@ def get_description(self, obj): class Flatboob(ReplApplication): APPNAME = 'flatboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2012-YEAR Romain Bignon' DESCRIPTION = "Console application to search for housing." SHORT_DESCRIPTION = "search for housing" CAPS = CapHousing diff --git a/weboob/applications/galleroob/galleroob.py b/weboob/applications/galleroob/galleroob.py index 66fc6af9df..57707b8960 100644 --- a/weboob/applications/galleroob/galleroob.py +++ b/weboob/applications/galleroob/galleroob.py @@ -48,7 +48,7 @@ def get_description(self, obj): class Galleroob(ReplApplication): APPNAME = 'galleroob' VERSION = '1.1' - COPYRIGHT = u'Copyright(C) 2011 Noé Rubinstein' + COPYRIGHT = u'Copyright(C) 2011-2014 Noé Rubinstein' DESCRIPTION = 'galleroob browses and downloads web image galleries' SHORT_DESCRIPTION = 'browse and download web image galleries' CAPS = CapGallery diff --git a/weboob/applications/geolooc/geolooc.py b/weboob/applications/geolooc/geolooc.py index 1d7c509941..bf043deb7e 100644 --- a/weboob/applications/geolooc/geolooc.py +++ b/weboob/applications/geolooc/geolooc.py @@ -29,7 +29,7 @@ class Geolooc(ReplApplication): APPNAME = 'geolooc' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to geolocalize IP addresses." SHORT_DESCRIPTION = "geolocalize IP addresses" CAPS = CapGeolocIp diff --git a/weboob/applications/handjoob/handjoob.py b/weboob/applications/handjoob/handjoob.py index 1edef295e7..1443d28be8 100644 --- a/weboob/applications/handjoob/handjoob.py +++ b/weboob/applications/handjoob/handjoob.py @@ -76,7 +76,7 @@ def get_description(self, obj): class Handjoob(ReplApplication): APPNAME = 'handjoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Bezleputh' + COPYRIGHT = 'Copyright(C) 2012-YEAR Bezleputh' DESCRIPTION = "Console application to search for a job." SHORT_DESCRIPTION = "search for a job" CAPS = CapJob diff --git a/weboob/applications/havedate/havedate.py b/weboob/applications/havedate/havedate.py index c03d02fad6..8a4fa8419d 100644 --- a/weboob/applications/havedate/havedate.py +++ b/weboob/applications/havedate/havedate.py @@ -49,7 +49,7 @@ def get_description(self, event): class HaveDate(Boobmsg): APPNAME = 'havedate' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to interact with various dating websites " \ "and to optimize seduction algorithmically." SHORT_DESCRIPTION = "interact with dating websites" diff --git a/weboob/applications/masstransit/masstransit.py b/weboob/applications/masstransit/masstransit.py index 7e048e4135..3ad66210a7 100644 --- a/weboob/applications/masstransit/masstransit.py +++ b/weboob/applications/masstransit/masstransit.py @@ -279,7 +279,7 @@ class Masstransit(Application): "Application Class" APPNAME = 'masstransit' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Julien Hébert' + COPYRIGHT = 'Copyright(C) 2010-YEAR Julien Hébert' DESCRIPTION = "Maemo application allowing to search for train stations and get departure times." SHORT_DESCRIPTION = "search for train stations and departures" diff --git a/weboob/applications/monboob/monboob.py b/weboob/applications/monboob/monboob.py index 7148861ff3..c1c75b0918 100644 --- a/weboob/applications/monboob/monboob.py +++ b/weboob/applications/monboob/monboob.py @@ -90,7 +90,7 @@ def run(self): class Monboob(ReplApplication): APPNAME = 'monboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = 'Daemon allowing to regularly check for new messages on various websites, ' \ 'and send an email for each message, and post a reply to a message on a website.' SHORT_DESCRIPTION = "daemon to send and check messages" diff --git a/weboob/applications/parceloob/parceloob.py b/weboob/applications/parceloob/parceloob.py index 0a8d10b739..00598d0837 100644 --- a/weboob/applications/parceloob/parceloob.py +++ b/weboob/applications/parceloob/parceloob.py @@ -85,7 +85,7 @@ def format_obj(self, obj, alias): class Parceloob(ReplApplication): APPNAME = 'parceloob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2013-YEAR Romain Bignon' CAPS = CapParcel DESCRIPTION = "Console application to track your parcels." SHORT_DESCRIPTION = "manage your parcels" diff --git a/weboob/applications/pastoob/pastoob.py b/weboob/applications/pastoob/pastoob.py index 9ed3c472f7..a46f5a1463 100644 --- a/weboob/applications/pastoob/pastoob.py +++ b/weboob/applications/pastoob/pastoob.py @@ -34,7 +34,7 @@ class Pastoob(ReplApplication): APPNAME = 'pastoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2011-2013 Laurent Bachelier' + COPYRIGHT = 'Copyright(C) 2011-YEAR Laurent Bachelier' DESCRIPTION = "Console application allowing to post and get pastes from pastebins." SHORT_DESCRIPTION = "post and get pastes from pastebins" CAPS = CapPaste diff --git a/weboob/applications/qboobmsg/qboobmsg.py b/weboob/applications/qboobmsg/qboobmsg.py index b210914894..711a914cd4 100644 --- a/weboob/applications/qboobmsg/qboobmsg.py +++ b/weboob/applications/qboobmsg/qboobmsg.py @@ -27,7 +27,7 @@ class QBoobMsg(QtApplication): APPNAME = 'qboobmsg' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Qt application allowing to read messages on various websites and reply to them." SHORT_DESCRIPTION = "send and receive message threads" CAPS = CapMessages diff --git a/weboob/applications/qcineoob/qcineoob.py b/weboob/applications/qcineoob/qcineoob.py index e9aa77a8b4..14c3b360fd 100644 --- a/weboob/applications/qcineoob/qcineoob.py +++ b/weboob/applications/qcineoob/qcineoob.py @@ -29,7 +29,7 @@ class QCineoob(QtApplication): APPNAME = 'qcineoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier' + COPYRIGHT = 'Copyright(C) 2013-YEAR Julien Veyssier' DESCRIPTION = "Qt application allowing to search movies, people, torrent and subtitles." SHORT_DESCRIPTION = "search movies, people, torrent and subtitles" CAPS = CapCinema, CapTorrent, CapSubtitle diff --git a/weboob/applications/qcookboob/qcookboob.py b/weboob/applications/qcookboob/qcookboob.py index 0d8ab1fe08..260b1c4fd3 100644 --- a/weboob/applications/qcookboob/qcookboob.py +++ b/weboob/applications/qcookboob/qcookboob.py @@ -27,7 +27,7 @@ class QCookboob(QtApplication): APPNAME = 'qcookboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier' + COPYRIGHT = 'Copyright(C) 2013-2014 Julien Veyssier' DESCRIPTION = "Qt application allowing to search recipes." SHORT_DESCRIPTION = "search recipes" CAPS = CapRecipe diff --git a/weboob/applications/qflatboob/qflatboob.py b/weboob/applications/qflatboob/qflatboob.py index 17f814630d..bbe563976b 100644 --- a/weboob/applications/qflatboob/qflatboob.py +++ b/weboob/applications/qflatboob/qflatboob.py @@ -28,7 +28,7 @@ class QFlatBoob(QtApplication): APPNAME = 'qflatboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-2014 Romain Bignon' DESCRIPTION = "Qt application to search for housing." SHORT_DESCRIPTION = "search for housing" CAPS = CapHousing diff --git a/weboob/applications/qhandjoob/qhandjoob.py b/weboob/applications/qhandjoob/qhandjoob.py index f1617b3b5f..207b2282dc 100644 --- a/weboob/applications/qhandjoob/qhandjoob.py +++ b/weboob/applications/qhandjoob/qhandjoob.py @@ -28,7 +28,7 @@ class QHandJoob(QtApplication): APPNAME = 'qhandjoob' VERSION = '1.1' - COPYRIGHT = u'Copyright(C) 2013 Sébastien Monel' + COPYRIGHT = u'Copyright(C) 2013-2014 Sébastien Monel' DESCRIPTION = "Qt application to search for job." SHORT_DESCRIPTION = "search for job" CAPS = CapJob diff --git a/weboob/applications/qhavedate/qhavedate.py b/weboob/applications/qhavedate/qhavedate.py index e8e9f2ea85..acb5b717f4 100644 --- a/weboob/applications/qhavedate/qhavedate.py +++ b/weboob/applications/qhavedate/qhavedate.py @@ -27,7 +27,7 @@ class QHaveDate(QtApplication): APPNAME = 'qhavedate' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-2014 Romain Bignon' DESCRIPTION = "Qt application allowing to interact with various dating websites." SHORT_DESCRIPTION = "interact with dating websites" CAPS = CapDating diff --git a/weboob/applications/qvideoob/qvideoob.py b/weboob/applications/qvideoob/qvideoob.py index e115ff424c..9d31793544 100644 --- a/weboob/applications/qvideoob/qvideoob.py +++ b/weboob/applications/qvideoob/qvideoob.py @@ -27,7 +27,7 @@ class QVideoob(QtApplication): APPNAME = 'qvideoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-2014 Romain Bignon' DESCRIPTION = "Qt application allowing to search videos on various websites and play them." SHORT_DESCRIPTION = "search and play videos" CAPS = CapVideo diff --git a/weboob/applications/qwebcontentedit/qwebcontentedit.py b/weboob/applications/qwebcontentedit/qwebcontentedit.py index 23d7eae2a7..7cd4c31016 100644 --- a/weboob/applications/qwebcontentedit/qwebcontentedit.py +++ b/weboob/applications/qwebcontentedit/qwebcontentedit.py @@ -26,7 +26,7 @@ class QWebContentEdit(QtApplication): APPNAME = 'qwebcontentedit' VERSION = '1.1' - COPYRIGHT = u'Copyright(C) 2011 Clément Schreiner' + COPYRIGHT = u'Copyright(C) 2011-2014 Clément Schreiner' DESCRIPTION = "Qt application allowing to manage content of various websites." SHORT_DESCRIPTION = "manage websites content" CAPS = CapContent diff --git a/weboob/applications/qweboobcfg/qweboobcfg.py b/weboob/applications/qweboobcfg/qweboobcfg.py index 7a6add0abd..92703fdb8a 100644 --- a/weboob/applications/qweboobcfg/qweboobcfg.py +++ b/weboob/applications/qweboobcfg/qweboobcfg.py @@ -24,7 +24,7 @@ class QWeboobCfg(QtApplication): APPNAME = 'qweboobcfg' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-2014 Romain Bignon' DESCRIPTION = "weboob-config-qt is a graphical application to add/edit/remove backends, " \ "and to register new website accounts." SHORT_DESCRIPTION = "manage backends or register new accounts" diff --git a/weboob/applications/radioob/radioob.py b/weboob/applications/radioob/radioob.py index 5f439b0c6e..849623a78b 100644 --- a/weboob/applications/radioob/radioob.py +++ b/weboob/applications/radioob/radioob.py @@ -126,7 +126,7 @@ def get_description(self, obj): class Radioob(ReplApplication): APPNAME = 'radioob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2013 Romain Bignon\nCopyright(C) 2013 Pierre Maziere' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon\nCopyright(C) YEAR Pierre Maziere' DESCRIPTION = "Console application allowing to search for web radio stations, listen to them and get information " \ "like the current song." SHORT_DESCRIPTION = "search, show or listen to radio stations" diff --git a/weboob/applications/suboob/suboob.py b/weboob/applications/suboob/suboob.py index 738cc07cee..c957dbcbab 100644 --- a/weboob/applications/suboob/suboob.py +++ b/weboob/applications/suboob/suboob.py @@ -86,7 +86,7 @@ def get_description(self, obj): class Suboob(ReplApplication): APPNAME = 'suboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2013 Julien Veyssier' + COPYRIGHT = 'Copyright(C) 2013-YEAR Julien Veyssier' DESCRIPTION = "Console application allowing to search for subtitles on various services " \ "and download them." SHORT_DESCRIPTION = "search and download subtitles" diff --git a/weboob/applications/translaboob/translaboob.py b/weboob/applications/translaboob/translaboob.py index 8834ea1d8d..af25830906 100644 --- a/weboob/applications/translaboob/translaboob.py +++ b/weboob/applications/translaboob/translaboob.py @@ -48,7 +48,7 @@ def format_obj(self, obj, alias): class Translaboob(ReplApplication): APPNAME = 'translaboob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Lucien Loiseau' + COPYRIGHT = 'Copyright(C) 2012-YEAR Lucien Loiseau' DESCRIPTION = "Console application to translate text from one language to another" SHORT_DESCRIPTION = "translate text from one language to another" CAPS = CapTranslate diff --git a/weboob/applications/traveloob/traveloob.py b/weboob/applications/traveloob/traveloob.py index 8f265614d0..43d546b6f6 100644 --- a/weboob/applications/traveloob/traveloob.py +++ b/weboob/applications/traveloob/traveloob.py @@ -67,7 +67,7 @@ def get_title(self, obj): class Traveloob(ReplApplication): APPNAME = 'traveloob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2013 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to search for train stations and get departure times." SHORT_DESCRIPTION = "search for train stations and departures" CAPS = CapTravel diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index 46c7a32e4f..576ddb462b 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -54,7 +54,7 @@ def get_description(self, obj): class Videoob(ReplApplication): APPNAME = 'videoob' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Christophe Benz, Romain Bignon, John Obbele' + COPYRIGHT = 'Copyright(C) 2010-YEAR Christophe Benz, Romain Bignon, John Obbele' DESCRIPTION = "Console application allowing to search for videos on various websites, " \ "play and download them and get information." SHORT_DESCRIPTION = "search and play videos" diff --git a/weboob/applications/webcontentedit/webcontentedit.py b/weboob/applications/webcontentedit/webcontentedit.py index 4e83fd1177..74dcda78bc 100644 --- a/weboob/applications/webcontentedit/webcontentedit.py +++ b/weboob/applications/webcontentedit/webcontentedit.py @@ -35,7 +35,7 @@ class WebContentEdit(ReplApplication): APPNAME = 'webcontentedit' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to display and edit contents on various websites." SHORT_DESCRIPTION = "manage websites content" CAPS = CapContent diff --git a/weboob/applications/weboobcfg/weboobcfg.py b/weboob/applications/weboobcfg/weboobcfg.py index 044928fe96..5452ddb299 100644 --- a/weboob/applications/weboobcfg/weboobcfg.py +++ b/weboob/applications/weboobcfg/weboobcfg.py @@ -34,7 +34,7 @@ class WeboobCfg(ReplApplication): APPNAME = 'weboob-config' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2012 Christophe Benz, Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Christophe Benz, Romain Bignon' DESCRIPTION = "Weboob-Config is a console application to add/edit/remove backends, " \ "and to register new website accounts." SHORT_DESCRIPTION = "manage backends or register new accounts" diff --git a/weboob/applications/weboobcli/weboobcli.py b/weboob/applications/weboobcli/weboobcli.py index 1d2879213f..02c58da7b5 100644 --- a/weboob/applications/weboobcli/weboobcli.py +++ b/weboob/applications/weboobcli/weboobcli.py @@ -28,7 +28,7 @@ class WeboobCli(ReplApplication): APPNAME = 'weboob-cli' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' SYNOPSIS = 'Usage: %prog [-dqv] [-b backends] [-cnfs] capability method [arguments..]\n' SYNOPSIS += ' %prog [--help] [--version]' DESCRIPTION = "Weboob-Cli is a console application to call a specific method on backends " \ diff --git a/weboob/applications/weboobdebug/weboobdebug.py b/weboob/applications/weboobdebug/weboobdebug.py index 8a58be08bd..aaeb650cdf 100644 --- a/weboob/applications/weboobdebug/weboobdebug.py +++ b/weboob/applications/weboobdebug/weboobdebug.py @@ -27,7 +27,7 @@ class WeboobDebug(Application): APPNAME = 'weboobdebug' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2011 Christophe Benz' + COPYRIGHT = 'Copyright(C) 2010-YEAR Christophe Benz' DESCRIPTION = "Weboob-Debug is a console application to debug backends." SHORT_DESCRIPTION = "debug backends" diff --git a/weboob/applications/weboobrepos/weboobrepos.py b/weboob/applications/weboobrepos/weboobrepos.py index 4b348b0303..eb1034ddbb 100644 --- a/weboob/applications/weboobrepos/weboobrepos.py +++ b/weboob/applications/weboobrepos/weboobrepos.py @@ -39,7 +39,7 @@ class WeboobRepos(ReplApplication): APPNAME = 'weboob-repos' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2012-YEAR Romain Bignon' DESCRIPTION = "Weboob-repos is a console application to manage a Weboob Repository." SHORT_DESCRIPTION = "manage a weboob repository" COMMANDS_FORMATTERS = {'backends': 'table', diff --git a/weboob/applications/weboorrents/weboorrents.py b/weboob/applications/weboorrents/weboorrents.py index a86c89d0d7..402c9bf71b 100644 --- a/weboob/applications/weboorrents/weboorrents.py +++ b/weboob/applications/weboorrents/weboorrents.py @@ -91,7 +91,7 @@ def get_description(self, obj): class Weboorrents(ReplApplication): APPNAME = 'weboorrents' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2012 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to search for torrents on various trackers " \ "and download .torrent files." SHORT_DESCRIPTION = "search and download torrents" diff --git a/weboob/applications/wetboobs/wetboobs.py b/weboob/applications/wetboobs/wetboobs.py index dd923ca2c6..9919322bfa 100644 --- a/weboob/applications/wetboobs/wetboobs.py +++ b/weboob/applications/wetboobs/wetboobs.py @@ -60,7 +60,7 @@ def get_title(self, obj): class WetBoobs(ReplApplication): APPNAME = 'wetboobs' VERSION = '1.1' - COPYRIGHT = 'Copyright(C) 2010-2014 Romain Bignon' + COPYRIGHT = 'Copyright(C) 2010-YEAR Romain Bignon' DESCRIPTION = "Console application allowing to display weather and forecasts in your city." SHORT_DESCRIPTION = "display weather and forecasts" CAPS = CapWeather diff --git a/weboob/tools/application/base.py b/weboob/tools/application/base.py index 8fe2310e06..6e4aa37ac7 100644 --- a/weboob/tools/application/base.py +++ b/weboob/tools/application/base.py @@ -23,6 +23,7 @@ import logging import optparse from optparse import OptionGroup, OptionParser +from datetime import datetime import locale import os import sys @@ -260,7 +261,8 @@ def _get_optparse_version(self): version = None if self.VERSION: if self.COPYRIGHT: - version = '%s v%s %s' % (self.APPNAME, self.VERSION, self.COPYRIGHT) + copyright = self.COPYRIGHT.replace('YEAR', '%d' % datetime.today().year) + version = '%s v%s %s' % (self.APPNAME, self.VERSION, copyright) else: version = '%s v%s' % (self.APPNAME, self.VERSION) return version diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 8acdebcfbd..d7e86b4ef0 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -24,6 +24,7 @@ import logging import re from optparse import OptionGroup, OptionParser, IndentedHelpFormatter +from datetime import datetime import os from weboob.capabilities.base import FieldNotFound, BaseObject, UserError @@ -113,9 +114,10 @@ def __init__(self): Cmd.__init__(self) ConsoleApplication.__init__(self, ReplOptionParser(self.SYNOPSIS, version=self._get_optparse_version())) + copyright = self.COPYRIGHT.replace('YEAR', '%d' % datetime.today().year).encode(self.encoding) self.intro = '\n'.join(('Welcome to %s%s%s v%s' % (self.BOLD, self.APPNAME, self.NC, self.VERSION), '', - self.COPYRIGHT.encode(self.encoding), + copyright, 'This program is free software: you can redistribute it and/or modify', 'it under the terms of the GNU Affero General Public License as published by', 'the Free Software Foundation, either version 3 of the License, or', -- GitLab