Contents
Nicely display list of Trac projects
Description
Provided an environment parent directory (like the PythonOption TracEnvParentDir directive in Trac's apache configuration), this will list links to multiple projects in a scalable, indexed, table-oriented format. This macro was created to address the problem of trying to host multiple Trac instances within a single site.
This macro is an updated incarnation of the original located in the MacroBazaar.
Bugs/Feature Requests
Existing bugs and feature requests for ListTracProjectsMacro are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from here.
Install
Copy the .py file into the plugins directory of your
Trac environment.
Delete the corresponding .pyc file if exist (for upgrade).
Restart apache if applicable.
Source
You can check out ListTracProjectsMacro from here using Subversion, or browse the source with Trac.
Example
You must edit and change the variable ENV_PARENT_DIR (or DIR for 0.11 branch) in the script to point to your environment's parent directory, e.g. /usr/local/www/trac/.
0.11 version (which is quite simple for now) seems to work with 0.12 too.
A sample call to the macro:
[[ListTracProjects()]]
Recent Changes
[8482] by rjollos on 08/28/10 05:28:55
Move ListTracProjects?.py for 0.10 to 0.10 directory.
[8481] by rjollos on 08/28/10 05:26:37
Adding directory for 0.10
[8480] by rjollos on 08/28/10 05:22:18
Renamed 0.10 -> ListTracProjects?.py
[8479] by rjollos on 08/28/10 05:20:53
Renamed 0.10 -> ListTracProjects?.py