Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/tracopt/ticket/__pycache__/ |
Upload File : |
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"