Version 2 (modified by robguttman, 6 years ago) (diff)


Default and convert report dynamic variables to pulldowns


This plugin applies to all reports that use dynamic variables. The plugin does two things for dynamic variables whose (uppercase) name exactly matches a built-in or custom (lowercase) select field name:

  • Dynamic variables are set to a default value if unset
  • The text field for dynamic variables is converted to a pulldown menu

JavaScript is required for the second feature above.


  1. Install the plugin (after downloading and unzipping):
    cd dynamicvariablesplugin/0.11
    sudo python bdist_egg
    sudo cp dist/TracDynamicVariables*.egg /your/trac/location/plugins/

See TracPlugins for more installation details and options. You'll likely need to restart Trac's web server after installation.

  1. Enable the plugin:
    dynvars.* = enabled

You can alternatively use the Trac Web Admin GUI to enable any or all rules.

Bugs/Feature Requests

Existing bugs and feature requests for DynamicVariablesPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:dynamicvariablesplugin here].


You can check out DynamicVariablesPlugin from here using Subversion, or browse the source with Trac.


There is (currently) no configuration options. Here's what the changes look like once enabled:





Recent Changes

15377 by rjollos on 2016-03-01 02:15:59
0.2.0dev: Fix empty select with Trac 0.12

Patch by Jun Omae.

Fixes #12679.

15376 by rjollos on 2016-03-01 02:04:23
Remove project files
15357 by rjollos on 2016-02-22 22:38:37
0.2.0dev: Make add_script_data usage compatible with Trac 0.12

Refs #12679.



Author: robguttman
Maintainer: robguttman

Attachments (2)

Download all attachments as: .zip