How is the Trac project list page configured?

We have been using Trac for our developers for a long time. However, we open it to our (domestic) customers. We have a page with a list of projects (based on the standard one that comes with Trac). What we would like to do displays more information about the project than the one that is currently available.

I searched google and here to find out if I can find how to get more information. There seems to be a variable called $ project that has the names .name, .description and .href as attributes.

Is there a list of available attributes somewhere? Or perhaps another solution that will allow us to display additional information on the project list page. For example, the number of open tickets, etc.

+7
trac
source share
2 answers

As far as I know, you can use $ project.env. This is an object that provides several attributes:

  • $ project.env.base_url
  • $ project.env.base_url_for_redirect
  • $ project.env.secure_cookies
  • $ project.env.project_name
  • $ project.env.project_description
  • $ project.env.project_url
  • $ project.env.project_admin
  • $ project.env.project_admin_trac_url
  • $ project.env.project_footer
  • $ project.env.project_icon
  • $ project.env.log_type
  • $ project.env.log_file
  • $ project.env.log_level
  • $ project.env.log_format

More information is available at env.py

+4
source share

There are actually not many variables on the page page settings page . Looking at the source code , there is also trac.version, trac.time, but that’s all. There is also project.env, which may contain more information. I don't have a multiproject setup, so you might be interested to see which variables are available with TracDeveloper . It resets the variables if enabled, and you add debug = true to the URL.

+2
source share

All Articles