Mercurial > libervia-backend
changeset 2530:0cb32e503aff
jp (output/template): fixed template output (media_dir was missing)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 21 Mar 2018 19:07:00 +0100 |
parents | cbbf2ff2ef3f |
children | 1dfc5516dead |
files | frontends/src/jp/output_template.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/jp/output_template.py Sun Mar 18 11:26:01 2018 +0100 +++ b/frontends/src/jp/output_template.py Wed Mar 21 19:07:00 2018 +0100 @@ -48,6 +48,8 @@ command's template_data_mapping attribute will be used if it exists to convert data to a dict usable by the template. """ + # media_dir is needed for the template + self.host.media_dir = self.host.bridge.getConfig('', 'media_dir') cmd = self.host.command try: template_path = cmd.TEMPLATE