File: //usr/lib/python3/dist-packages/tracopt/ticket/__pycache__/clone.cpython-310.pyc
o
�k�`F � @ sD d dl mZmZ d dlmZ d dlmZmZmZ G dd� de�Z dS )� )� Component�
implements)�IRequestFilter)�ITemplateProvider�
add_script�add_script_datac @ s: e Zd ZdZeee� dd� Zdd� Zdd� Z dd � Z
d
S )�TicketCloneButtonz�Add a ''Clone'' button in the ticket box and in ticket comments.
This button is located next to the 'Reply' to description button,
and pressing it will send a request for creating a new ticket
which will be based on the cloned one.
c C s |S �N� )�self�req�handlerr
r
�6/usr/lib/python3/dist-packages/tracopt/ticket/clone.py�pre_process_request � z%TicketCloneButton.pre_process_requestc C sP |dkr#|� d�}|r#|jr#t|d� t||�d�d|j� d�id� |||fS )Nzticket.html�ticketzticketopt/ticketclone.js� newticket�use_symbolszui.use_symbols)�newticket_href�ui)�get�existsr r �href�session)r r �template�data�metadatar r
r
r �post_process_request"