Mercurial > libervia-web
changeset 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 | 7cec74557aa3 |
children | ee984eefc787 |
files | libervia/pages/files/list/page_meta.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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])