diff src/server/constants.py @ 856:fd438e51bda8

server: version check: - added C.APP_VERSIOn to server/constants, to override value from sat.core.constants, this allow checking version mismatch - libervia.__version__ is set - in case of version mismatch with sat module version, an error message is printend and execution is stopped
author Goffi <goffi@goffi.org>
date Sun, 24 Jan 2016 18:45:35 +0100
parents 027139763511
children 05cd9dc775e6
line wrap: on
line diff
--- a/src/server/constants.py	Fri Jan 22 20:22:30 2016 +0100
+++ b/src/server/constants.py	Sun Jan 24 18:45:35 2016 +0100
@@ -28,6 +28,9 @@
 
     APP_NAME = 'Libervia'
     APP_NAME_FILE = "libervia"
+    # XXX: we don't want to use the APP_VERSION inherited from sat.core.constants version
+    #      as we use this version to check that there is not a mismatch with backend
+    APP_VERSION = u'0.6.0D'  # Please add 'D' at the end for dev versions
     SERVICE_PROFILE = 'libervia'  # the SàT profile that is used for exporting the service
 
     SESSION_TIMEOUT = 300  # Session's timeout, after that the user will be disconnected