Package trac :: Package ticket :: Module api :: Class ITicketChangeListener

Class ITicketChangeListener

source code

    object --+    
             |    
core.Interface --+
                 |
                ITicketChangeListener

Extension point interface for components that require notification when tickets are created, modified, or deleted.
Instance Methods
 
ticket_created(ticket)
Called when a ticket is created.
source code
 
ticket_changed(ticket, comment, author, old_values)
Called when a ticket is modified.
source code
 
ticket_deleted(ticket)
Called when a ticket is deleted.
source code
 
ticket_comment_modified(ticket, cdate, author, comment, old_comment)
Called when a ticket comment is modified.
source code
 
ticket_change_deleted(ticket, cdate, changes)
Called when a ticket change is deleted.
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

ticket_changed(ticket, comment, author, old_values)

source code 

Called when a ticket is modified.

old_values is a dictionary containing the previous values of the fields that have changed.

ticket_change_deleted(ticket, cdate, changes)

source code 

Called when a ticket change is deleted.

changes is a dictionary of tuple (oldvalue, newvalue) containing the ticket change of the fields that have changed.