wiki:TicketValidatorPlugin

Version 1 (modified by superafroman, 7 years ago) (diff)

New hack TicketValidatorPlugin, created by superafroman

Ticket Validator

Description

Basic ticket validation for Trac. The validation is based on the state that the ticket is in so you can specify different requirements for different steps in the workflow.

Currently you can only specify required fields.

Bugs/Feature Requests

Existing bugs and feature requests for TicketValidatorPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out TicketValidatorPlugin from here using Subversion, or browse the source with Trac.

Example

Say you require the 'actual' field to be filled out once the ticket has been completed and the 'estimate' field once the ticket has been accpeted. You can configure this through the admin page or edit the trac.ini file. The section in trac.ini would look something like this

[ticketvalidation] actual.required = done estimate.required = accepted,done

Recent Changes

[14386] by rjollos on 2015-01-23 05:42:46
0.2dev: Improved appearance of Validation Rules admin page. Refs #12156.

Based on a patch by dhealey@...

[14385] by rjollos on 2015-01-23 05:42:34
0.2dev: PEP-0008 changes.
[14383] by rjollos on 2015-01-21 16:38:58
Remove the "unpythonic" method _is_empty from the RequiredFieldValidator class (untested). Refs #12156.

Author/Contributors

Author: superafroman
Contributors:

Attachments (1)

Download all attachments as: .zip