File: //usr/lib/python3/dist-packages/tracopt/ticket/__pycache__/deleter.cpython-310.pyc
o
�k�`' � @ s� d dl mZ d dlmZmZmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
d dlmZ d dlmZmZ d d lmZmZmZmZmZ G d
d� de�ZdS )
� )�
Attachment)� Component� TracError�
implements)�Ticket)�TicketModule)�get_reporter_id)�from_utimestamp)�_)�IRequestFilter�IRequestHandler)�ITemplateProvider�
add_notice�
add_script�add_script_data�add_stylesheetc @ sL e Zd ZdZeeee� dd� Zdd� Z dd� Z
dd � Zd
d� Zdd
� Z
dS )�
TicketDeletera� 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).
c c s"