Mercurial > libervia-web
comparison libervia/server/constants.py @ 1253:6d49fae517ba
pages: browser metadata + root `_browser`:
- the `_browser` directory can now be put in root of a site `pages` directory, it will then
include modules for the whole website
- in `_browser` directories (notably the root one), a `browser_meta.json` file can be put to
specify settings for a browser engine
- pathlib.Path is now used LiberviaRootResource.site_path
- introduced some type hints
- task_brython copy modules in root `_browser` to build_path root.
- minimal python version is now 3.7 due to type hints
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Apr 2020 17:34:53 +0200 |
parents | 9b865f2604a9 |
children | 1ec41ac1e7cf |
comparison
equal
deleted
inserted
replaced
1252:80a92eb82b7f | 1253:6d49fae517ba |
---|---|
58 STATIC_RSM_MAX_COMMENTS_DEFAULT = 10 | 58 STATIC_RSM_MAX_COMMENTS_DEFAULT = 10 |
59 | 59 |
60 ## Libervia pages ## | 60 ## Libervia pages ## |
61 PAGES_META_FILE = "page_meta.py" | 61 PAGES_META_FILE = "page_meta.py" |
62 PAGES_BROWSER_DIR = "_browser" | 62 PAGES_BROWSER_DIR = "_browser" |
63 PAGES_BROWSER_META_FILE = "browser_meta.json" | |
63 PAGES_ACCESS_NONE = ( | 64 PAGES_ACCESS_NONE = ( |
64 "none" | 65 "none" |
65 ) # no access to this page (using its path will return a 404 error) | 66 ) # no access to this page (using its path will return a 404 error) |
66 PAGES_ACCESS_PUBLIC = "public" | 67 PAGES_ACCESS_PUBLIC = "public" |
67 PAGES_ACCESS_PROFILE = ( | 68 PAGES_ACCESS_PROFILE = ( |