view libervia/web/pages/login/logged/page_meta.py @ 1536:dc81403a5b2f

browser: chat page: since the move to Brython, the chat was really basic and not really usable. Now that dynamism has been re-implemented correctly in the new frontend, a real advanced chat page can be done. This is the first draft in this direction.
author Goffi <goffi@goffi.org>
date Wed, 28 Jun 2023 10:05:13 +0200
parents eb00d593801d
children 7941444c1671
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__)

"""SàT 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