Changes between Version 10 and Version 11 of KeepInterfaceSimplePlugin


Ignore:
Timestamp:
Apr 16, 2018, 7:30:45 AM (6 years ago)
Author:
Jon Ashley
Comment:

Fix the processor directive for some of the ini-file sections and for the python section

Legend:

Unmodified
Added
Removed
Modified
  • KeepInterfaceSimplePlugin

    v10 v11  
    3737For example, let's assume that we have a set of people on our project with the role of 'approver' (i.e. they are members of the Trac permissions group 'approver'). Let's also assume that the 'approval' field mentioned above is a Select or Radio field that has options 'Not assessed', 'Denied' and 'Approved'. The basic set of options 'Not assessed' or 'Denied' are available to all, but the full set of options including 'Approved' is only available if the user is a member of the 'approver' group or if the field already had the value 'Approved' when the page was loaded.
    3838{{{#!ini
     39[kis_assistant]
    3940approval.options.basic_set = 'Not assessed', 'Denied'
    4041approval.available.basic_set = true
     
    5152
    5253For example, take the rule:
    53 {{{
     54{{{#!ini
     55[kis_assistant]
    5456priority.update = (effort > 5) ? 'high' : 'low'
    5557}}}
     
    5961
    6062For example:
    61 {{{
     63{{{#!ini
     64[kis_assistant]
    6265priority.update.when = milestone == 'Build 42'
    6366}}}
     
    6972
    7073For example:
    71 {{{
     74{{{#!ini
     75[kis_assistant]
    7276evaluation.template.change = '=== Description ===\\nDescribe the change fully...'
    7377evaluation.available.change = evaluation_template == 'Change'
     
    122126
    123127User functions can be defined by adding a Python file to the Trac plugins folder that implements the `IConfigFunction` interface. For example:
    124 {{{
     128{{{#!python
    125129from trac.core import *
    126130from kis2 import IConfigFunction