Re: [Trac] calling specific python code in jinja2 template

2020-09-02 Thread cedric...@gmail.com
Hi, Thank you. I solved the problem by sending the results of the python code to the template. Cédric On Monday, July 27, 2020 at 7:55:52 PM UTC+2 RjOllos wrote: > On Mon, Jul 27, 2020 at 10:49 AM Cedric Lugnier > wrote: > >> Hi all, >> >> I'm currently migrating TracDownload plugin to

Re: [Trac] calling specific python code in jinja2 template

2020-07-27 Thread Ryan Ollos
On Mon, Jul 27, 2020 at 10:49 AM Cedric Lugnier wrote: > Hi all, > > I'm currently migrating TracDownload plugin to jinja2. I am encountering > some problems to call trac Ressource from jinja2 template. I tried to add > the function in jinja2 environment before rendering it, but unfortunatly it

[Trac] calling specific python code in jinja2 template

2020-07-27 Thread Cedric Lugnier
Hi all, I'm currently migrating TracDownload plugin to jinja2. I am encountering some problems to call trac Ressource from jinja2 template. I tried to add the function in jinja2 environment before rendering it, but unfortunatly it doesn't work. Does somebody have any idea on how to pass cutom