comparison libervia/pages/login/logged/page_meta.py @ 1216:b2d067339de3

python 3 port: /!\ Python 3.6+ is now needed to use libervia /!\ instability may occur and features may not be working anymore, this will improve with time /!\ TxJSONRPC dependency has been removed The same procedure as in backend has been applied (check backend commit ab2696e34d29 logs for details). Removed now deprecated code (Pyjamas compiled browser part, legacy blog, JSON RPC related code). Adapted code to work without `html` and `themes` dirs.
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:12:31 +0200
parents 29eb15062416
children f511f8fbbf8a
comparison
equal deleted inserted replaced
1215:f14ab8a25e8b 1216:b2d067339de3
1 #!/usr/bin/env python2.7 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 from libervia.server import session_iface 4 from libervia.server import session_iface
5 from sat.core.log import getLogger 5 from sat.core.log import getLogger
6 6
7 log = getLogger(__name__) 7 log = getLogger(__name__)
8 8
9 """SàT log-in page, with link to create an account""" 9 """SàT log-in page, with link to create an account"""
10 10
11 template = u"login/logged.html" 11 template = "login/logged.html"
12 12
13 13
14 def prepare_render(self, request): 14 def prepare_render(self, request):
15 template_data = request.template_data 15 template_data = request.template_data
16 session_data = self.host.getSessionData(request, session_iface.ISATSession) 16 session_data = self.host.getSessionData(request, session_iface.ISATSession)