All pastes #1188743 Raw Edit

Untitled

public text v1 · immutable
#1188743 ·published 2008-08-29 18:58 UTC
rendered paste body
class DontCloseMilestoneTickets(Component):

    implements(ITicketManipulator)

    ### methods for ITicketManipulator

    """Miscellaneous manipulation of ticket workflow features."""

    def prepare_ticket(self, req, ticket, fields, actions):
        """Not currently called, but should be provided for future
        compatibility."""

    def validate_ticket(self, req, ticket):
        """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."""