comparison libervia/web/pages/login/logged/page_meta.py @ 1518:eb00d593801d

refactoring: rename `libervia` to `libervia.web` + update imports following backend changes
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 16:49:28 +0200
parents libervia/pages/login/logged/page_meta.py@106bae41f5c8
children 7941444c1671
comparison
equal deleted inserted replaced
1517:b8ed9726525b 1518:eb00d593801d
1 #!/usr/bin/env python3
2
3
4 from libervia.web.server import session_iface
5 from libervia.backend.core.log import getLogger
6
7 log = getLogger(__name__)
8
9 """SàT log-in page, with link to create an account"""
10
11 template = "login/logged.html"
12
13
14 def prepare_render(self, request):
15 template_data = request.template_data
16 session_data = self.host.get_session_data(request, session_iface.IWebSession)
17 template_data["guest_session"] = session_data.guest
18 template_data["session_started"] = session_data.started