Changes between Version 3 and Version 4 of TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
- Timestamp:
- Apr 9, 2015, 1:39:30 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
v3 v4 1 == Extension Point : ''ITicketManipulator'' ==1 == Extension Point : ''ITicketManipulator'' 2 2 3 3 ||'''Interface'''||''ITicketManipulator''||'''Since'''||0.10|| … … 6 6 The ''ITicketManipulator'' can manipulate and validate tickets before saving. 7 7 8 == Purpose ==8 == Purpose 9 9 10 10 The Trac ticketing system is extendable by plugins. These plugins might add additional fields or introduce new restrictions on existing fields. 11 11 They might want to automatically manage some fields. Any such ticket manipulations or validations can be added by implementing the ITicketManipulator interface. 12 12 13 == Usage ==13 == Usage 14 14 15 15 Implementing the interface follows the standard guidelines found in [wiki:TracDev/ComponentArchitecture] and of course [wiki:TracDev/PluginDevelopment]. … … 27 27 }}} 28 28 29 == Examples ==29 == Examples 30 30 31 31 One might want to maintain a wiki page with the MostFrequentDuplicates. One could [TracDev/Proposals/NewTicketDuplicateCheck take this idea further] and implement a minimal example ITicketManipulator implementation that warns about tickets already listed there: … … 65 65 * comment:1:ticket:10384 Contains an example that makes milestone a required field. 66 66 67 == Available Implementations ==67 == Available Implementations 68 68 69 69 * SpamFilter: Reject ticket changes that contain spam … … 72 72 73 73 * th:TracTicketValidatorPlugin: Rejects invalid (configurable) fields. 74 * th: RestrictKeywordsPlugin: Rejects tickets with invalid (configurable) ''keywords''.74 * th:KeywordSuggestPlugin: Rejects tickets with invalid (configurable) ''keywords''. 75 75 * th:BlackMagicTicketTweaksPlugin: Rejects ticket changes to disabled or hidden fields. 76 76 * th:SensitiveTicketsPlugin: Rejects anonymous sensitive tickets. … … 92 92 * th:GeoTicketPlugin: Updates a ticket's geolocation fields. 93 93 94 == Additional Information and References ==94 == Additional Information and References 95 95 96 96 * [http://www.edgewall.org/docs/trac-trunk/epydoc/trac.ticket.api.ITicketManipulator-class.html epydoc] … … 107 107 * #6634 Discusses validation messages containing markup (e.g. links). 108 108 * Archived mailing list discussions: 109 * [trac-dev:289 Example] illustrating the original idea for `prepare_ticket_for_render` (This would not work now.)109 * [trac-dev:289 Example] illustrating the original idea for `prepare_ticket_for_render`. This would not work now.