diff libervia/server/constants.py @ 1127:9234f29053b0

server, pages: update to handle multi sites themes, first draft: This first part of update handle changes in backend for multi-sites templates. Templates are now available in _t resource, followed by site name (default one is in "sat").
author Goffi <goffi@goffi.org>
date Sun, 09 Sep 2018 21:12:22 +0200
parents 28e3eb3bb217
children 2af117bfe6cc
line wrap: on
line diff
--- a/libervia/server/constants.py	Fri Aug 31 18:08:06 2018 +0200
+++ b/libervia/server/constants.py	Sun Sep 09 21:12:22 2018 +0200
@@ -34,6 +34,8 @@
     CARDS_DIR = "games/cards/tarot"
     PAGES_DIR = u"pages"
 
+    TPL_RESOURCE = u'_t'
+
     ERRNUM_BRIDGE_ERRBACK = 0  # FIXME
     ERRNUM_LIBERVIA = 0  # FIXME
 
@@ -104,17 +106,5 @@
 
     ## Date/Time ##
     HTTP_DAYS = ("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun")
-    HTTP_MONTH = (
-        "Jan",
-        "Feb",
-        "Mar",
-        "Apr",
-        "May",
-        "Jun",
-        "Jul",
-        "Aug",
-        "Sep",
-        "Oct",
-        "Nov",
-        "Dec",
-    )
+    HTTP_MONTH = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
+                  "Nov", "Dec")