| 12 | |
| 13 | == Installation and Usage |
| 14 | |
| 15 | Because a patch must be applied to Trac before using this plugin, Trac must be installed with the following commands instead of through the operating system's package manager: |
| 16 | |
| 17 | {{{#!sh |
| 18 | $ svn export http://svn.edgewall.org/repos/trac/tags/trac-VERSION trac |
| 19 | $ svn export https://www.matbooth.co.uk/svn/trunk/multiproduct/patches/ patches |
| 20 | $ cd trac/ |
| 21 | $ patch -p0 <../patches/depselect_support_trac-VERSION.patch |
| 22 | $ python ./setup.py install |
| 23 | }}} |
| 24 | |
| 25 | Where `VERSION` is your version of Trac. Currently supported versions are 0.11.4, 0.11.5 and 0.11.6. |
| 26 | |
| 27 | Now install the Multi-Product plugin: |
| 28 | |
| 29 | {{{#!sh |
| 30 | $ easy_install -Z https://www.matbooth.co.uk/svn/trunk/multiproduct/ |
| 31 | }}} |
| 32 | |
| 33 | When the plugin is enabled in your `trac.ini` file it is also recommended that you disable the admin plugins for the component and version fields, since MultiProduct is really a replacement for these fields: |
| 34 | |
| 35 | {{{#!ini |
| 36 | [components] |
| 37 | multiproduct.* = enabled |
| 38 | trac.ticket.admin.componentadminpanel = disabled |
| 39 | trac.ticket.admin.versionadminpanel = disabled |
| 40 | }}} |
| 41 | |
| 42 | The Trac environment will ask to be upgraded: |
| 43 | |
| 44 | {{{#!sh |
| 45 | $ trac-admin /path/to/trac/environment upgrade |
| 46 | }}} |
| 47 | |
| 48 | Once configured, Trac administrators will find a new ticket system admin panel for each of the fields added by the plugin. |