tracopt.ticket.deleter

class tracopt.ticket.deleter.TicketDeleter

Bases: trac.core.Component

Ticket and ticket comment deleter.

This component allows deleting ticket comments and complete tickets. For users having TICKET_ADMIN permission, it adds a “Delete” button next to each “Reply” button on the page. The button in the ticket description requests deletion of the complete ticket, and the buttons in the change history request deletion of a single comment.

‘’‘Comment and ticket deletion are irreversible (and therefore ‘’dangerous’‘) operations.’‘’ For that reason, a confirmation step is requested. The confirmation page shows the ticket box (in the case of a ticket deletion) or the ticket change (in the case of a comment deletion).