All pastes #1352797 Raw Edit

Mine

public text v1 · immutable
#1352797 ·published 2009-03-04 17:22 UTC
rendered paste body
"""
foo:
a plugin for Trac
http://trac.edgewall.org
"""

from trac.core import *

from trac.ticket.api import ITicketChangeListener

class foo(Component):

    implements(ITicketChangeListener)

    ### methods for ITicketChangeListener

    """Extension point interface for components that require notification
    when tickets are created, modified, or deleted."""

    def ticket_changed(self, ticket, comment, author, old_values):
        """Called when a ticket is modified.
        
        `old_values` is a dictionary containing the previous values of the
        fields that have changed.
        """

    def ticket_created(self, ticket):
        """Called when a ticket is created."""

    def ticket_deleted(self, ticket):
        """Called when a ticket is deleted."""