Mercurial > libervia-web
changeset 941:aba7208d9d50
pages (g): guest name is added to template data
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 May 2017 12:56:47 +0200 |
parents | e30a4b7eff09 |
children | 6b55d038b121 |
files | src/pages/g/page_meta.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pages/g/page_meta.py Thu Apr 27 01:17:46 2017 +0200 +++ b/src/pages/g/page_meta.py Fri May 19 12:56:47 2017 +0200 @@ -73,6 +73,12 @@ profile = profile))) sat_session.profile = profile + # we copy data useful in templates + template_data = request.template_data + for key in ('name',): + if key in data: + template_data[key] = data[key] + def prepare_render(self, request): template_data = request.template_data