wiki:DynamicVariablesPlugin

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

--

Default and convert report dynamic variables to pulldowns

Description

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.

Configuration

  1. Install the plugin (after downloading and unzipping):
    cd dynamicvariablesplugin/0.11
    sudo python setup.py 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:
    [components]
    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

Download the zipped source from here.

Source

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

Example

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

Before

image(before.png)?

After

image(after.png)?

Recent Changes

[14032] by rjollos on 2014-07-25 13:34:51
Changed license to 3-Clause BSD with permission of author. Refs #11832.
[13991] by rjollos on 2014-06-22 11:47:31
Indentation and whitespace cleanup using reindent.py.
[11092] by robguttman on 2012-01-02 16:39:40
fixed python path

Author/Contributors

Author: robguttman
Maintainer: robguttman
Contributors:

Attachments (2)

Download all attachments as: .zip