If you want to inject data into the global template context, you would
need to make a request filter (specifically your code would be in a
post-req filter).
--Noah
On May 11, 2010, at 2:07 AM, stanleyxu2005 wrote:
Hi All, I want to customize the project page (trac/templates/
index.html).
I want to use a table to show more project-specific information. For
instance the admin list of each project, the build status of each
project. These information are stored in trac's database.
I am afraid that the default template engine is not able to give me
there information. At least I have found nothing valuable from its
documentaton.
So I decided to write a python script (on the server side) to generate
these information as a JSON string. I injected also a chunk javascript
to fetch the JSON from this python script by using Ajax.
But I do not know how to make my python script interpreted by trac.
--
You received this message because you are subscribed to the Google
Groups "Trac Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.