# HG changeset patch # User Goffi # Date 1486923814 -3600 # Node ID bca699faf416151838bd37830e97d72d015fc653 # Parent 1bb9bf1b415003381f878bf9d110c57a37bde0dc core: added release name in constants + full version diff -r 1bb9bf1b4150 -r bca699faf416 src/core/constants.py --- 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' diff -r 1bb9bf1b4150 -r bca699faf416 src/core/sat_main.py --- 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