If you feel like hacking a bit, and don't mind maintaining it, then the easiest way to do this is to edit `send_project_index` in `trac/web/main.py`. Specifically the dictionary `proj`. The thing you need to bare in mind is that that entire section of code (the one that deals with the project index) is not well integrated with the rest of Trac, so you won't have access to many of the things you would usually have access to if you were modifying something that was actually /in/ a project.

@Noah - if it's possible to hook into that section with plugins, I'd be quite interested to know the specifics of how. I was under the impression (from what I've read of the code for it), that most of that part existed outside the usual flow.

On 12/5/2010 3:57 AM, Noah Kantrowitz wrote:
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.

Reply via email to