comparison 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
comparison
equal deleted inserted replaced
940:e30a4b7eff09 941:aba7208d9d50
71 71
72 log.info(_(u"guest session started, connected with profile [{profile}]".format( 72 log.info(_(u"guest session started, connected with profile [{profile}]".format(
73 profile = profile))) 73 profile = profile)))
74 sat_session.profile = profile 74 sat_session.profile = profile
75 75
76 # we copy data useful in templates
77 template_data = request.template_data
78 for key in ('name',):
79 if key in data:
80 template_data[key] = data[key]
81
76 82
77 def prepare_render(self, request): 83 def prepare_render(self, request):
78 template_data = request.template_data 84 template_data = request.template_data
79 guest_session = self.host.getSessionData(request, session_iface.ISATGuestSession) 85 guest_session = self.host.getSessionData(request, session_iface.ISATGuestSession)
80 main_uri = guest_session.data.get('main_uri') 86 main_uri = guest_session.data.get('main_uri')