diff libervia/server/constants.py @ 1246:aaf28d45ae67

pages: browser code, first draft: - code for browser can now be specified if a page subdirectory named `_browser` exists - the default engine used is `Brython` (not yet implemented, so it will do nothing for now) - build_path now uses C.SITE_NAME_DEFAULT for default site instead of empty string, to avoid collision with other sites - ProtectedFile transtype path (first positional argument) to str, so a pathlib.Path can be used
author Goffi <goffi@goffi.org>
date Sun, 26 Apr 2020 22:01:13 +0200
parents f511f8fbbf8a
children 9b865f2604a9
line wrap: on
line diff
--- a/libervia/server/constants.py	Sat Apr 25 16:08:55 2020 +0200
+++ b/libervia/server/constants.py	Sun Apr 26 22:01:13 2020 +0200
@@ -35,7 +35,9 @@
     PAGES_DIR = "pages"
     TASKS_DIR = "tasks"
     LIBERVIA_CACHE = "libervia"
+    SITE_NAME_DEFAULT = "default"
     BUILD_DIR = "__b"
+    BUILD_DIR_DYN = "dyn"
 
     TPL_RESOURCE = '_t'
 
@@ -57,6 +59,7 @@
 
     ## Libervia pages ##
     PAGES_META_FILE = "page_meta.py"
+    PAGES_BROWSER_DIR = "_browser"
     PAGES_ACCESS_NONE = (
         "none"
     )  #  no access to this page (using its path will return a 404 error)