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 ticket properties when creating or modifying.
source code
 
validate_comment(req, comment)
Validate ticket comment when appending or editing.
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 ticket properties when creating or modifying.

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.

validate_comment(req, comment)

source code 

Validate ticket comment when appending or editing.

Must return a list of messages, one for each problem detected. The return value [] indicates no problems.

Since: 1.3.2