diff 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
line wrap: on
line diff
--- a/libervia/server/session_iface.py	Tue May 19 11:05:47 2020 +0200
+++ b/libervia/server/session_iface.py	Tue May 19 11:05:50 2020 +0200
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 
-
-# Libervia: a SAT frontend
+# Libervia: a SàT frontend
 # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org)
 
 # This program is free software: you can redistribute it and/or modify
@@ -51,6 +50,7 @@
         self.identities = data_objects.Identities()
         self.csrf_token = str(shortuuid.uuid())
         self.locale = None  # i18n of the pages
+        self.theme = C.TEMPLATE_THEME_DEFAULT
         self.pages_data = {}  # used to keep data accross reloads (key is page instance)
         self.affiliations = OrderedDict()  # cache for node affiliations