Mercurial > libervia-web
view libervia/web/pages/login/logged/page_meta.py @ 1609:f3305832f3f6
server (resources): handle external Libervia apps by adding them to menu without using a Proxy:
When an external Libervia app is used, a link is added to the menu, and clicking on it
will open the app in an blank page instead of embedding it with a Proxy.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 May 2024 11:10:04 +0200 |
parents | 7941444c1671 |
children |
line wrap: on
line source
#!/usr/bin/env python3 from libervia.web.server import session_iface from libervia.backend.core.log import getLogger log = getLogger(__name__) """Libervia Web log-in page, with link to create an account""" template = "login/logged.html" def prepare_render(self, request): template_data = request.template_data session_data = self.host.get_session_data(request, session_iface.IWebSession) template_data["guest_session"] = session_data.guest template_data["session_started"] = session_data.started