Request for help - Plugin template conversions

15 views
Skip to first unread message

RjOllos

unread,
Mar 23, 2021, 10:11:19 PM3/23/21
to Trac Users
Hello Trac enthusiasts:

We've implemented some major changes in Trac and without some major effort many plugins will soon be incompatible with the latest release of Trac:

Trac 1.4 Jinja2 is the template engine rather than Genshi
Trac 1.6 Dropping Python 2 support

The Jinja2 template conversions are pretty straightforward and can be done by someone with minimal programming experience. We have a jinjachecker.py tool for checking the syntax.

If you are interested in putting some effort towards converting templates, even if you have minimal programming experience, I can offer help with: setting up a dev environment, reviewing your changes, replying to questions, etc.

At our current pace, with the current number of contributors, we will never get this done. Please chime in if you can offer some help! :)

Ryan

Emerson Castañeda

unread,
Mar 24, 2021, 2:20:08 PM3/24/21
to trac-...@googlegroups.com
Hi Ryan

I think preparing a guide(s) for plugins migration to 1.4 -1.5 and 1.6 could be a good idea to increase workforce , I could take care of that once I get a better understanding of the implications of the recent breaking changes

Right now, I would not be sure where/how to start, but  maybe with your help we can make a quick overview in orden to enable myself to work on it and produce that materia to share to the community. 

Thanks

Emerson

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/10c158ac-3ef8-4b4a-b735-d8753c681c0fn%40googlegroups.com.

RjOllos

unread,
Mar 24, 2021, 5:26:41 PM3/24/21
to Trac Users
On Wednesday, March 24, 2021 at 11:20:08 AM UTC-7 emecas wrote:
Hi Ryan

I think preparing a guide(s) for plugins migration to 1.4 -1.5 and 1.6 could be a good idea to increase workforce , I could take care of that once I get a better understanding of the implications of the recent breaking changes

Right now, I would not be sure where/how to start, but  maybe with your help we can make a quick overview in orden to enable myself to work on it and produce that materia to share to the community. 

Thanks

Emerson

There are two pages that document the syntax conversion:

Then, you can run jinjachecker on the modified templates:
$ ./contrib/jinjachecker.py
usage: jinjachecker.py [-h] [-j] [--html-only] [-q] [-i] TEMPLATE [TEMPLATE ...]
jinjachecker.py: error: the following arguments are required: TEMPLATE

Ryan 
Reply all
Reply to author
Forward
0 new messages