Changes between Version 10 and Version 11 of KeepInterfaceSimplePlugin
- Timestamp:
- Apr 16, 2018, 7:30:45 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
KeepInterfaceSimplePlugin
v10 v11 37 37 For 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. 38 38 {{{#!ini 39 [kis_assistant] 39 40 approval.options.basic_set = 'Not assessed', 'Denied' 40 41 approval.available.basic_set = true … … 51 52 52 53 For example, take the rule: 53 {{{ 54 {{{#!ini 55 [kis_assistant] 54 56 priority.update = (effort > 5) ? 'high' : 'low' 55 57 }}} … … 59 61 60 62 For example: 61 {{{ 63 {{{#!ini 64 [kis_assistant] 62 65 priority.update.when = milestone == 'Build 42' 63 66 }}} … … 69 72 70 73 For example: 71 {{{ 74 {{{#!ini 75 [kis_assistant] 72 76 evaluation.template.change = '=== Description ===\\nDescribe the change fully...' 73 77 evaluation.available.change = evaluation_template == 'Change' … … 122 126 123 127 User functions can be defined by adding a Python file to the Trac plugins folder that implements the `IConfigFunction` interface. For example: 124 {{{ 128 {{{#!python 125 129 from trac.core import * 126 130 from kis2 import IConfigFunction