Changes between Version 2 and Version 3 of CondFieldsGenshiPlugin


Ignore:
Timestamp:
May 31, 2012, 6:20:46 PM (3 years ago)
Author:
Reinhard
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CondFieldsGenshiPlugin

    v2 v3  
    99presentation changes, not the contents of the ticket.
    1010
    11 CondFieldsGenshiPlugin is derived from the CondFieldsPlugin ("Dynamic fields by ticket type"), but it is completely based on Genshi now instead of using
     11CondFieldsGenshiPlugin is derived from the CondFieldsPlugin (Dynamic fields by ticket type), but it is completely based on Genshi now instead of using
    1212Javascript. Moreover, you can select whether selected fields are hidden
    1313or shown by default.
    1414
    15 This plugin is "standalone"; the patch
    16 "blackmagic-conditionalfields.patch" in [1] did not match with newer
     15This plugin is standalone; the patch
     16blackmagic-conditionalfields.patch in [1] did not match with newer
    1717releases of Trac 0.11.
    1818
     
    4646First, configure trac.ini as in this example:
    4747
    48   [components]
    49   condfieldsgenshi.* = enabled
    50 
    51   ...
    52 
    53   [condfieldsgenshi]
    54   tweaks = field1, field2
    55   default = disable
    56   field1.type_cond = defect
    57   field2.type_cond = task
    58 
     48  [components][[BR]]
     49  condfieldsgenshi.* = enabled[[BR]]
     50  ...[[BR]]
     51  [condfieldsgenshi][[BR]]
     52  tweaks = field1, field2[[BR]]
     53  default = disable[[BR]]
     54  field1.type_cond = defect[[BR]]
     55  field2.type_cond = task[[BR]]
    5956
    6057Effect:
    6158
    62 Now field1 will be shown only if the ticket type is "defect", field2
    63 only if the ticket type is "task".
     59Now field1 will be shown only if the ticket type is defect, field2
     60only if the ticket type is task.
    6461
    65 The entry "default = disable" means that the field listed under "tweaks"
     62The entry[[BR]]
     63default = disable[[BR]]
     64means that the field listed under tweaks
    6665are NOT shown by default.
    67 The default value is "default = enable".
     66The default value is default = enable.
    6867
    6968To disable/enable a field independent of the ticket type, simply write a line
     
    7271  field1.type_cond = None
    7372
    74 (supposed there is no "None" type :-).
     73(supposed there is no None type :-).
    7574
    76 When you change the ticket type, you must type "preview" resp. "submit"
     75When you change the ticket type, you must type preview resp. submit
    7776before you can see the effect of of condfieldsgenshi.
    7877
    7978
    80 Bug fix done for "type" field
     79Bug fix done for type field
    8180-----------------------------
    8281
     
    8887(in contrast to the Dynamic fields by ticket type plugin, cf. [1]).
    8988
    90 The type field label is extended by "(Fixed)" in this case now.
     89The type field label is extended by (Fixed) in this case now.
    9190
    9291== Recent Changes ==