comparison libervia/server/pages.py @ 1294:44da7b118b02

pages: set `guest_session` in template data when suitable
author Goffi <goffi@goffi.org>
date Fri, 19 Jun 2020 16:47:51 +0200
parents de3b15d68bb6
children 04e7dd6b6f4d
comparison
equal deleted inserted replaced
1293:de3b15d68bb6 1294:44da7b118b02
1366 template_data["notifications"] = notifs 1366 template_data["notifications"] = notifs
1367 if session_data.jid is not None: 1367 if session_data.jid is not None:
1368 template_data["own_jid"] = session_data.jid 1368 template_data["own_jid"] = session_data.jid
1369 if session_data.locale is not None: 1369 if session_data.locale is not None:
1370 template_data['locale'] = session_data.locale 1370 template_data['locale'] = session_data.locale
1371 if session_data.guest:
1372 template_data['guest_session'] = True
1371 if self.vhost_root.site_name: 1373 if self.vhost_root.site_name:
1372 template_data['site'] = self.vhost_root.site_name 1374 template_data['site'] = self.vhost_root.site_name
1373 if self.dyn_data: 1375 if self.dyn_data:
1374 for data in self.dyn_data.values(): 1376 for data in self.dyn_data.values():
1375 try: 1377 try: