Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja2 #34

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Jinja2 #34

wants to merge 4 commits into from

Conversation

mus-candidus
Copy link

Hi, this plugin is important for us and one of the reasons we can't upgrade to Trac 1.5 just yet.
I replaced the code of filter_stream() by JavaScript and did some fixes to make in work with Python3.
The resulting code works with Trac 1.4 and Trac 1.5.


return stream
add_script(req, 'subtickets/js/appendsubticketsdata.js')
add_script_data(req, subtickets_script_args=json.dumps(script_args))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json.dumps() and $.parseJSON() are not needed. The data is rendered with to_json filter in layout.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants