Changes between Version 19 and Version 20 of TracTicketChainedFieldsPlugin


Ignore:
Timestamp:
Mar 13, 2015, 10:19:08 AM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged with license

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketChainedFieldsPlugin

    v19 v20  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Dynamically change field depending on value of parent =
    32
    4 == Description ==
     3= Dynamically change field depending on value of parent
     4
     5== Description
    56
    67Dynamically change fields options by their parent fields.
    78
    8 == Bugs/Feature Requests ==
     9== Bugs/Feature Requests
    910
    1011Existing bugs and feature requests for TracTicketChainedFieldsPlugin are
     
    1415[http://trac-hacks.org/newticket?component=TracTicketChainedFieldsPlugin&owner=richard new ticket].
    1516
    16 == Download ==
     17[[TicketQuery(component=TracTicketChainedFieldsPlugin&group=type,format=progress)]]
     18
     19== Download
    1720
    1821Download the zipped source from [download:tracticketchainedfieldsplugin here].
    1922
    20 == Source ==
     23== Source
    2124
    2225You can check out TracTicketChainedFieldsPlugin from [http://trac-hacks.org/svn/tracticketchainedfieldsplugin here] using Subversion, or [source:tracticketchainedfieldsplugin browse the source] with Trac.
    2326
    24 == Install ==
     27== Installation
    2528
    2629You can install this software as you would for any [TracPlugins TracPlugin].
     
    2831[http://pypi.python.org/pypi/simplejson simplejson] is a requirement for Python < 2.6, and it should be installed automatically if required when running `easy_install`.
    2932
    30  1. Uninstall TracTicketTemplate if you have installed before.
    31 
    32  2. Change to the directory containning setup.py.
    33 
    34  3. If you want to install this plugin globally, that will install this plugin to the python path:
    35   * python setup.py install
    36 
    37  4. If you want to install this plugin to trac instance only:
     33 1. Uninstall TracTicketTemplate if you have it installed before.
     34 1. Change to the directory containing setup.py.
     35 1. If you want to install this plugin globally, this will install this plugin to the python path:
     36{{{#!sh
     37python setup.py install
     38}}}
     39 1. If you want to install this plugin to the Trac instance only:
    3840  * python setup.py bdist_egg
    3941  * copy the generated egg file to the trac instance's plugin directory
    40   {{{#!sh
     42{{{#!sh
    4143cp dist/*.egg /srv/trac/env/plugins
    4244}}}
    43 
    44  5. Config trac.ini:
    45  {{{#!ini
     45 1. Add the follwing line to the components section of the `trac.ini` file:
     46{{{#!ini
    4647[components]
    4748tcf.* = enabled
     
    5152chained_fields = tcf_brand, tcf_phone, tcf_os
    5253}}}
    53  or
    54  {{{#!ini
     54 or:
     55{{{#!ini
    5556chained_fields = component, tcf_brand, tcf_phone, tcf_os
    5657}}}
     
    6162== Example
    6263
    63 For example, there are 3 fields: brand, phone, OS. When brand changes, phone field will change it's options to show only phone belongs to that brand. When phone changes, OS field will change too.
     64For example, there are 3 fields: brand, phone, OS. When the phone brand changes, the phone field will change its options to show only phone belongs to that brand. When the phone changes, the OS field will change accordingly.
    6465 1. Add 3 custom fields in trac.ini
    6566 {{{#!ini
     
    118119}}}
    119120
    120 Please note:
    121  * '''If no options for some fields, like "SE" above, you still need supply the full structure, with empty string as keys.'''
    122  * '''It supports any fields after [7793].'''
     121'''Notes''':
     122 * If no options for some fields, like "SE" above, you still need supply the full structure, with empty string as keys.
     123 * It supports any fields after [7793].
    123124
    124 === Snapshot ===
     125=== Screenshot
     126
    125127[[Image(TracTicketChainedFieldsPlugin.png)]]
    126128
    127 == Recent Changes ==
     129== Recent Changes
    128130
    129131[[ChangeLog(tracticketchainedfieldsplugin, 3)]]
    130132
    131 == Author/Contributors ==
     133== Author/Contributors
    132134
    133135'''Author:''' [wiki:richard] [[BR]]