comparison 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
comparison
equal deleted inserted replaced
855:de17f7313cbe 856:fd438e51bda8
26 26
27 class Const(constants.Const): 27 class Const(constants.Const):
28 28
29 APP_NAME = 'Libervia' 29 APP_NAME = 'Libervia'
30 APP_NAME_FILE = "libervia" 30 APP_NAME_FILE = "libervia"
31 # XXX: we don't want to use the APP_VERSION inherited from sat.core.constants version
32 # as we use this version to check that there is not a mismatch with backend
33 APP_VERSION = u'0.6.0D' # Please add 'D' at the end for dev versions
31 SERVICE_PROFILE = 'libervia' # the SàT profile that is used for exporting the service 34 SERVICE_PROFILE = 'libervia' # the SàT profile that is used for exporting the service
32 35
33 SESSION_TIMEOUT = 300 # Session's timeout, after that the user will be disconnected 36 SESSION_TIMEOUT = 300 # Session's timeout, after that the user will be disconnected
34 HTML_DIR = "html/" 37 HTML_DIR = "html/"
35 THEMES_DIR = "themes/" 38 THEMES_DIR = "themes/"