comparison libervia/server/session_iface.py @ 1165:6424d3684d1e

pages: locale handling: language/locale can be set using C.KEY_LANG in url query (e.g. [url]?lang=fr), it is set for the whole session.
author Goffi <goffi@goffi.org>
date Wed, 10 Apr 2019 21:06:34 +0200
parents 2af117bfe6cc
children 352865f4a268
comparison
equal deleted inserted replaced
1164:ef3adc3f2078 1165:6424d3684d1e
45 # time when the backend session was started 45 # time when the backend session was started
46 self.backend_started = None 46 self.backend_started = None
47 self.uuid = unicode(shortuuid.uuid()) 47 self.uuid = unicode(shortuuid.uuid())
48 self.identities = data_objects.Identities() 48 self.identities = data_objects.Identities()
49 self.csrf_token = unicode(shortuuid.uuid()) 49 self.csrf_token = unicode(shortuuid.uuid())
50 self.locale = None # i18n of the pages
50 self.pages_data = {} # used to keep data accross reloads (key is page instance) 51 self.pages_data = {} # used to keep data accross reloads (key is page instance)
51 self.affiliations = OrderedDict() # cache for node affiliations 52 self.affiliations = OrderedDict() # cache for node affiliations
52 53
53 @property 54 @property
54 def cache_dir(self): 55 def cache_dir(self):