Mercurial > libervia-web
diff src/pages/g/page_meta.py @ 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 | 9be057e23ce6 |
children | 44dde9b955e8 |
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