Package trac :: Package ticket :: Module api :: Class ITicketManipulator

Class ITicketManipulator

source code

    object --+    
             |    
core.Interface --+
                 |
                ITicketManipulator

Miscellaneous manipulation of ticket workflow features.
Instance Methods
 
prepare_ticket(req, ticket, fields, actions)
Not currently called, but should be provided for future compatibility.
source code
 
validate_ticket(req, ticket)
Validate a ticket after it's been populated from user input.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

validate_ticket(req, ticket)

source code 

Validate a ticket after it's been populated from user input.

Must return a list of (field, message) tuples, one for each problem detected. field can be None to indicate an overall problem with the ticket. Therefore, a return value of [] means everything is OK.