Mercurial > libervia-backend
changeset 2147:bca699faf416
core: added release name in constants + full version
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 19:23:34 +0100 (2017-02-12) |
parents | 1bb9bf1b4150 |
children | a543eda2c923 |
files | src/core/constants.py src/core/sat_main.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/constants.py Sun Feb 12 19:08:52 2017 +0100 +++ b/src/core/constants.py Sun Feb 12 19:23:34 2017 +0100 @@ -32,6 +32,7 @@ APP_NAME_FILE = u'sat' APP_NAME_FULL = u'%s (%s)' % (APP_NAME_SHORT, APP_NAME) APP_VERSION = u'0.7.0D' # Please add 'D' at the end for dev versions + APP_RELEASE_NAME = u'La Commune' APP_URL = u'http://salut-a-toi.org'
--- a/src/core/sat_main.py Sun Feb 12 19:08:52 2017 +0100 +++ b/src/core/sat_main.py Sun Feb 12 19:23:34 2017 +0100 @@ -129,14 +129,14 @@ @property def full_version(self): - """Return the full version of SàT (with extra data when in development mode)""" + """Return the full version of SàT (with release name and extra data when in development mode)""" version = self.version if version[-1] == 'D': # we are in debug version, we add extra data try: return self._version_cache except AttributeError: - self._version_cache = u"{} ({})".format(version, utils.getRepositoryData(sat)) + self._version_cache = u"{} « {} » ({})".format(version, C.APP_RELEASE_NAME, utils.getRepositoryData(sat)) return self._version_cache else: return version