Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/libervia/pages/files/list/page_meta.py Fri Jun 19 16:47:51 2020 +0200 +++ b/libervia/pages/files/list/page_meta.py Fri Jun 19 16:47:51 2020 +0200 @@ -104,5 +104,7 @@ template_data["files_data"] = files_data template_data["path"] = path + # we make the service and path accessible from scripts + self.exposeToScripts(request, files_service=service.full(), files_path=path) if path_elts: template_data["parent_url"] = self.getURL(service.full(), *path_elts[:-1])