Mercurial > libervia-web
comparison libervia/server/server.py @ 1397:ed037818d6de
core (constants): renaming following global project renaming
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Mar 2021 18:20:39 +0100 |
parents | 822bd0139769 |
children | 396d5606477f |
comparison
equal
deleted
inserted
replaced
1396:822bd0139769 | 1397:ed037818d6de |
---|---|
1 #!/usr/bin/env python3 | 1 #!/usr/bin/env python3 |
2 | 2 |
3 # Libervia: a Salut à Toi frontend | 3 # Libervia Web |
4 # Copyright (C) 2011-2021 Jérôme Poisson <goffi@goffi.org> | 4 # Copyright (C) 2011-2021 Jérôme Poisson <goffi@goffi.org> |
5 | 5 |
6 # 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 |
7 # 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 |
8 # the Free Software Foundation, either version 3 of the License, or | 8 # the Free Software Foundation, either version 3 of the License, or |
1045 C.EXIT_BRIDGE_ERROR, | 1045 C.EXIT_BRIDGE_ERROR, |
1046 _("Connection of service profile failed: {reason}").format(reason=e) | 1046 _("Connection of service profile failed: {reason}").format(reason=e) |
1047 ) | 1047 ) |
1048 | 1048 |
1049 async def backendReady(self): | 1049 async def backendReady(self): |
1050 log.info(f"Libervia v{self.full_version}") | 1050 log.info(f"Libervia Web v{self.full_version}") |
1051 | 1051 |
1052 # settings | 1052 # settings |
1053 if self.options['dev-mode']: | 1053 if self.options['dev-mode']: |
1054 log.info(_("Developer mode activated")) | 1054 log.info(_("Developer mode activated")) |
1055 self.media_dir = await self.bridgeCall("getConfig", "", "media_dir") | 1055 self.media_dir = await self.bridgeCall("getConfig", "", "media_dir") |