Mercurial > libervia-web
comparison libervia/server/constants.py @ 1275:334d044f2713
server: default theme can now be specified in site section of `sat.conf` with `theme` key
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 16:47:50 +0200 |
parents | 1ec41ac1e7cf |
children | b1215347b5c3 |
comparison
equal
deleted
inserted
replaced
1274:eb4f03da0d7d | 1275:334d044f2713 |
---|---|
1 #!/usr/bin/env python3 | 1 #!/usr/bin/env python3 |
2 | 2 |
3 | 3 # Libervia: a SàT frontend |
4 # Libervia: a SAT frontend | |
5 # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org) | 4 # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org) |
6 | 5 |
7 # This program is free software: you can redistribute it and/or modify | 6 # This program is free software: you can redistribute it and/or modify |
8 # it under the terms of the GNU Affero General Public License as published by | 7 # it under the terms of the GNU Affero General Public License as published by |
9 # the Free Software Foundation, either version 3 of the License, or | 8 # the Free Software Foundation, either version 3 of the License, or |
22 | 21 |
23 class Const(constants.Const): | 22 class Const(constants.Const): |
24 | 23 |
25 APP_NAME = "Libervia" | 24 APP_NAME = "Libervia" |
26 APP_NAME_FILE = "libervia" | 25 APP_NAME_FILE = "libervia" |
26 CONFIG_SECTION = APP_NAME.lower() | |
27 SERVICE_PROFILE = "libervia" # the SàT profile that is used for exporting the service | 27 SERVICE_PROFILE = "libervia" # the SàT profile that is used for exporting the service |
28 | 28 |
29 SESSION_TIMEOUT = 7200 # Session's timeout, after that the user will be disconnected | 29 SESSION_TIMEOUT = 7200 # Session's timeout, after that the user will be disconnected |
30 HTML_DIR = "html/" | 30 HTML_DIR = "html/" |
31 THEMES_DIR = "themes/" | 31 THEMES_DIR = "themes/" |