comparison src/server/server.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 4a01be961fd2
children 7dde76708892
comparison
equal deleted inserted replaced
855:de17f7313cbe 856:fd438e51bda8
58 from libervia.server.blog import MicroBlog 58 from libervia.server.blog import MicroBlog
59 59
60 60
61 # following value are set from twisted.plugins.libervia_server initialise (see the comment there) 61 # following value are set from twisted.plugins.libervia_server initialise (see the comment there)
62 DATA_DIR_DEFAULT = OPT_PARAMETERS_BOTH = OPT_PARAMETERS_CFG = coerceDataDir = None 62 DATA_DIR_DEFAULT = OPT_PARAMETERS_BOTH = OPT_PARAMETERS_CFG = coerceDataDir = None
63 __version__ = C.APP_VERSION
64 63
65 64
66 class ISATSession(Interface): 65 class ISATSession(Interface):
67 profile = Attribute("Sat profile") 66 profile = Attribute("Sat profile")
68 jid = Attribute("JID associated with the profile") 67 jid = Attribute("JID associated with the profile")