comparison libervia/pages/files/list/page_meta.py @ 1289:c14ac2502011

pages (files/list): export `service` and `path` to scripts
author Goffi <goffi@goffi.org>
date Fri, 19 Jun 2020 16:47:51 +0200
parents f511f8fbbf8a
children ee984eefc787
comparison
equal deleted inserted replaced
1288:7cec74557aa3 1289:c14ac2502011
102 self, comments_service, comments_node, profile=profile 102 self, comments_service, comments_node, profile=profile
103 ) 103 )
104 104
105 template_data["files_data"] = files_data 105 template_data["files_data"] = files_data
106 template_data["path"] = path 106 template_data["path"] = path
107 # we make the service and path accessible from scripts
108 self.exposeToScripts(request, files_service=service.full(), files_path=path)
107 if path_elts: 109 if path_elts:
108 template_data["parent_url"] = self.getURL(service.full(), *path_elts[:-1]) 110 template_data["parent_url"] = self.getURL(service.full(), *path_elts[:-1])