On Monday, February 7, 2022 at 7:05:50 AM UTC-8 [email protected] wrote:

> Hi all,
> I worked some hours trying to upgrade my TestManagerForTracPlugin to 
> Python3 and the latest Trac, and after having fixed the deprecated db api 
> and several other issues I found out that the Genshi template engine has 
> been replaced with Jinja2 and the ITemplateStreamFilter is no longer 
> supported. (BTW, the reason seems to be performance problems with Genshi... 
> Actually we haven't ever faced any in our organization...)
>
> Unfortunately, the plugin is heavily (if not completely) based on 
> the ITemplateStreamFilter machanism, in order o decorate Wiki pages, and a 
> bit also the Ticket pages, with the set of contents and controls related to 
> test catalogs and test cases.
> This allows users to leverage the power of the Wiki, and of any other 
> plugins that augment it, while dealing with test descriptions and metadata.
>
> Rewriting the plugin completely, to replace template filtering with 
> JavaScript as recommended, besides being an awkward approach, is something 
> I can't currently undergo, unfortunately.
>
> Roberto
>

I would treat the 3 changes separately in this order:
1. Deprecated database API (Trac 1.2)
2. Port to Jinja2 (Trac 1.4)
3. Python3 (Trac 1.6)

If you complete just (1), you'll have compatibility with Trac 1.4, which 
still supports Genshi in most ways while recommending Jinja2.

Ryan

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/b5143843-d7d5-45d7-ae21-2d8142fa4698n%40googlegroups.com.

Reply via email to