diff libervia/server/pages.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 6414fd795df4
line wrap: on
line diff
--- a/libervia/server/pages.py	Fri Aug 31 18:08:06 2018 +0200
+++ b/libervia/server/pages.py	Sun Sep 09 21:12:22 2018 +0200
@@ -998,7 +998,6 @@
 
             rendered = self.host.renderer.render(
                 template,
-                root_path="/templates/",
                 error_code=code,
                 **request.template_data
             )
@@ -1077,7 +1076,6 @@
 
         return self.host.renderer.render(
             self.template,
-            root_path="/templates/",
             media_path="/" + C.MEDIA_DIR,
             cache_path=session_data.cache_dir,
             main_menu=LiberviaPage.main_menu,
@@ -1271,7 +1269,6 @@
 
         return self.host.renderer.render(
             template,
-            root_path="/templates/",
             media_path="/" + C.MEDIA_DIR,
             cache_path=session_data.cache_dir,
             main_menu=LiberviaPage.main_menu,