Mercurial > libervia-web
comparison libervia/server/session_iface.py @ 1270:6dfcdbeb0d33
pages: handle themes using `theme` request argument
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 19 May 2020 11:05:50 +0200 |
parents | f511f8fbbf8a |
children | 334d044f2713 |
comparison
equal
deleted
inserted
replaced
1269:470c6cfdf4ce | 1270:6dfcdbeb0d33 |
---|---|
1 #!/usr/bin/env python3 | 1 #!/usr/bin/env python3 |
2 | 2 |
3 | 3 # Libervia: a SàT frontend |
4 # Libervia: a SAT frontend | |
5 # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org) | 4 # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org) |
6 | 5 |
7 # This program is free software: you can redistribute it and/or modify | 6 # This program is free software: you can redistribute it and/or modify |
8 # it under the terms of the GNU Affero General Public License as published by | 7 # it under the terms of the GNU Affero General Public License as published by |
9 # the Free Software Foundation, either version 3 of the License, or | 8 # the Free Software Foundation, either version 3 of the License, or |
49 self.backend_started = None | 48 self.backend_started = None |
50 self.uuid = str(shortuuid.uuid()) | 49 self.uuid = str(shortuuid.uuid()) |
51 self.identities = data_objects.Identities() | 50 self.identities = data_objects.Identities() |
52 self.csrf_token = str(shortuuid.uuid()) | 51 self.csrf_token = str(shortuuid.uuid()) |
53 self.locale = None # i18n of the pages | 52 self.locale = None # i18n of the pages |
53 self.theme = C.TEMPLATE_THEME_DEFAULT | |
54 self.pages_data = {} # used to keep data accross reloads (key is page instance) | 54 self.pages_data = {} # used to keep data accross reloads (key is page instance) |
55 self.affiliations = OrderedDict() # cache for node affiliations | 55 self.affiliations = OrderedDict() # cache for node affiliations |
56 | 56 |
57 @property | 57 @property |
58 def cache_dir(self): | 58 def cache_dir(self): |