Changes between Version 26 and Version 27 of BlackMagicTicketTweaksPlugin
- Timestamp:
- Mar 23, 2016, 6:56:17 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BlackMagicTicketTweaksPlugin
v26 v27 3 3 = Various hacks to alter Ticket form behaviour and Ticket Permissions 4 4 5 {{{#!box info 5 6 '''Note:''' This hack is available for adoption. 7 }}} 6 8 7 9 == Description 8 10 9 Trac 0.11 provides developers and administrators uswith the ability to apply Genshi Transformers to the templates before they are presented to the user. This plugin adds the ability to tweak any of the Ticket fields, be they custom or standard, in the following ways:11 Trac 0.11 provides developers and administrators with the ability to apply Genshi Transformers to the templates before they are presented to the user. This plugin adds the ability to tweak any of the Ticket fields, be they custom or standard, in the following ways: 10 12 * disable - The field won't be editable. 11 13 * hide - The field will be invisible. … … 21 23 == Bugs/Feature Requests 22 24 23 Existing bugs and feature requests for BlackMagicTicketTweaksPlugin are [query:status!=closed&component=BlackMagicTicketTweaksPlugin&order=priority here]. 25 Existing bugs and feature requests for BlackMagicTicketTweaksPlugin are 26 [report:9?COMPONENT=BlackMagicTicketTweaksPlugin here]. 24 27 25 28 If you have any issues, create a 26 [/newticket?component=BlackMagicTicketTweaksPlugin&owner=obs new ticket] please cc yourself if you're anonymous or you won't be notified of when I respond. 29 [/newticket?component=BlackMagicTicketTweaksPlugin new ticket]. 30 Please cc yourself if you're anonymous or you won't be notified of when I respond. 27 31 28 32 [[TicketQuery(component=BlackMagicTicketTweaksPlugin&group=type,format=progress)]] … … 30 34 == Download 31 35 32 * Download the zipped source from [export:blackmagictickettweaksplugin here]. 33 * You can check out BlackMagicTicketTweaksPlugin [/svn/blackmagictickettweaksplugin using Subversion], or [source:blackmagictickettweaksplugin browse the source] with Trac. 36 Download the zipped source from [export:blackmagictickettweaksplugin here]. 37 38 == Source 39 40 You can check out BlackMagicTicketTweaksPlugin from [/svn/blackmagictickettweaksplugin here] using Subversion, or [source:blackmagictickettweaksplugin browse the source] with Trac. 34 41 35 42 == Installation … … 43 50 The easiest way to install the BlackMagicTicketTweaksPlugin is to point `easy_install` at the t-h.o SVN repository, such as: 44 51 45 {{{ 46 #!sh 47 easy_install http://trac-hacks.org/svn/blackmagictickettweaksplugin/0.11 52 {{{#!sh 53 easy_install https://trac-hacks.org/svn/blackmagictickettweaksplugin/0.11 48 54 }}} 49 55 50 56 Alternatively, you may download the source and go into the Trac 0.11 directory and then run: 51 57 52 {{{ 53 #!sh 58 {{{#!sh 54 59 python setup.py install 55 60 }}} … … 57 62 After you have installed the BlackMagicTicketTweaksPlugin, you must enable it. You can do so in the Administration panel of Trac, or in the `trac.ini` file by adding: 58 63 59 {{{ 60 #!ini 64 {{{#!ini 61 65 [components] 62 66 blackmagic.* = enabled … … 65 69 == Configuration 66 70 67 Any fields that you would like to tweak with this plugin must be listed in the ''tweaks'' option of the [blackmagic]section in your TracIni. This list is comma-separated and lower case. For example:71 Any fields that you would like to tweak with this plugin must be listed in the ''tweaks'' option of the `[blackmagic]` section in your TracIni. This list is comma-separated and lower case. For example: 68 72 69 {{{ 70 #!ini 73 {{{#!ini 71 74 [blackmagic] 72 75 tweaks = cc, priority, severity … … 77 80 The actions are specified as `<field>.<action> = <value>`: 78 81 79 {{{ 80 #!ini 82 {{{#!ini 81 83 [blackmagic] 82 84 tweaks = priority … … 84 86 }}} 85 87 86 The following are considered True settings in trac.ini:88 The following are considered True settings in `trac.ini`: 87 89 * true 88 90 * yes … … 103 105 You may create new permissions in Trac for use above (or anywhere you like) by specifying the ''permission'' option, as in: 104 106 105 {{{ 106 #!ini 107 {{{#!ini 107 108 [blackmagic] 108 109 permissions = TICKET_CHG_PRIORITY, TICKET_CHG_CC … … 114 115 115 116 `ticket_type.* = PERMISSION` replacing * with the ticket type, for example `defect`. So to only allow users with the `TICKET_MODIFY` permission access to defect tickets you would set the following: 116 {{{ 117 #!ini 117 {{{#!ini 118 118 [blackmagic] 119 119 ticket_type.defect = TICKET_MODIFY … … 122 122 Denying access to a ticket type will prevent users from seeing them in reports, viewing the tickets of that type and creating tickets of that type. 123 123 124 Currently the ticket_type.* option can only hold one permission, if you want a comma separated list [/newticket?component=BlackMagicTicketTweaksPlugin &owner=obsraise a ticket] and request it.124 Currently the ticket_type.* option can only hold one permission, if you want a comma separated list [/newticket?component=BlackMagicTicketTweaksPlugin raise a ticket] and request it. 125 125 126 126 To use this option you will need to add BlackMagicTicketTweaks to the permission_policies option in the [trac] section of the `trac.ini` file: 127 127 128 {{{ 129 #!ini 128 {{{#!ini 130 129 [trac] 131 130 permission_policies = BlackMagicTicketTweaks, DefaultPermissionPolicy … … 134 133 == Example 135 134 136 {{{ 137 #!ini 135 {{{#!ini 138 136 [blackmagic] 139 137 permissions = MASTER_OF_PERMISSIONS, TICKET_RAISE_DEFECT