Mercurial > libervia-web
annotate src/pages/login/logged/page_meta.py @ 987:1bbc29aad56a
server (install): force version of txJSON-RPC to 0.3.1:
later version are bugged (unicode is badly handled). We only use if for Libervia legacy (i.e. Pyjamas version), and we'll get rid of it for SàT 0.8, so it's not a big deal to use an older version.
In addition, txJSON-RPC doesn't seem maintained anymore.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Nov 2017 19:21:55 +0100 |
parents | 2932170bb526 |
children | b92b06f023cb |
rev | line source |
---|---|
963
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 #!/usr/bin/env python2.7 |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 # -*- coding: utf-8 -*- |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 from sat.core.log import getLogger |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 log = getLogger('pages/login') |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 """SàT log-in page, with link to create an account""" |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 template = u"login/logged.html" |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 def prepare_render(self, request): |
2932170bb526
pages: added login/logged and register pages
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 request.template_data['profile'] = self.getProfile(request) |