diff libervia/server/pages.py @ 1305:db9ea167c409

pages: `profile` is now exposed to scripts
author Goffi <goffi@goffi.org>
date Thu, 16 Jul 2020 09:08:50 +0200
parents 70e3341d25bf
children a7ab4d244982
line wrap: on
line diff
--- a/libervia/server/pages.py	Thu Jul 16 09:08:50 2020 +0200
+++ b/libervia/server/pages.py	Thu Jul 16 09:08:50 2020 +0200
@@ -953,8 +953,7 @@
         "previous_page_url" and "next_page_url" will be added using respectively
         "before" and "after" URL parameters
         @param request(server.Request): current HTTP request
-        @param pubsub_data(dict): pubsub metadata parsed with
-            data_objects.parsePubSubMetadata
+        @param pubsub_data(dict): pubsub metadata
         """
         template_data = request.template_data
         try:
@@ -1398,7 +1397,8 @@
         theme = session_data.theme or self.default_theme
         self.exposeToScripts(
             request,
-            templates_root_url=str(self.vhost_root.getFrontURL(theme)))
+            templates_root_url=str(self.vhost_root.getFrontURL(theme)),
+            profile=session_data.profile)
 
         return self.host.renderer.render(
             self.template,