view libervia/pages/login/logged/page_meta.py @ 1258:92ff09cdd6dd

server: gather themes data: - the new LiberviaRootResource's `site_themes` attribute is a set of available themes for a site, it is set a template variable for pages. - if `browser_meta` are available for a theme, the metadata are merged with pages root `_browser` data - if python files are found in `browser_path`, they are added to be handled by brython task.
author Goffi <goffi@goffi.org>
date Sun, 03 May 2020 19:28:14 +0200
parents f511f8fbbf8a
children ce879da7fcf7
line wrap: on
line source

#!/usr/bin/env python3


from libervia.server import session_iface
from sat.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.getSessionData(request, session_iface.ISATSession)
    template_data["guest_session"] = session_data.guest
    template_data["session_started"] = session_data.started