File: //usr/lib/python3/dist-packages/trac/ticket/__pycache__/web_ui.cpython-310.pyc
o
�k�`�V � @ s4 d dl Z d dlmZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z m
Z
d dlT d dlm
Z
mZ d dlmZ d dlmZmZ d d lmZmZmZmZmZ d d
lmZmZmZ d dlmZ d dl m!Z!m"Z"m#Z# d d
l$m%Z% d dl&m'Z' d dl(m)Z) d dl*m+Z+m,Z,m-Z-m.Z.m/Z/ d dl0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z: d dl;m<Z<m=Z=m>Z> d dl?m@Z@mAZAmBZBmCZC d dlDmEZE d dlFmGZGmHZHmIZImJZJmKZK d dlLmMZMmNZN d dlOmPZPmQZQmRZR d dlSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZambZb d dlcmdZdmeZe G dd� def�ZgG dd� def�ZhdS )� N��datetime)�AttachmentModule)�
BoolOption�Option)�*)�Mimeview�IContentConverter)�NotificationSystem)�IPermissionPolicy�PermissionSystem)�Resource�ResourceNotFound�get_resource_url�render_resource_link�get_resource_shortname)�
ISearchSource�
search_to_sql�shorten_result)�model)�TicketSystem�ITicketManipulator�TicketFieldList)�TicketChangeEvent)�group_milestones)�ITimelineEventProvider)�as_bool�as_int�get_reporter_id�lazy�to_list)
�datetime_now�format_datetime�format_date_or_datetime�from_utimestamp�get_date_format_hint�get_datetime_format_hint�
parse_date�
to_utimestamp� user_time�utc)�Markup�tag�to_fragment)�exception_to_unicode�empty�
is_obfuscated�shorten_line)� separated)�_�tag_�tagn_�N_�ngettext)�get_diff_options�diff_blocks)�IRequestHandler�arg_list_to_args�parse_arg_list)�Chrome�INavigationContributor�ITemplateProvider� accesskey�add_ctxtnav�add_link�
add_notice�
add_script�add_script_data�add_stylesheet�add_warning� auth_link�chrome_info_script�prevnext_nav�web_context)� format_to�format_to_htmlc @ s e Zd Zeeeeeee � e
e�Ze
jZedddd�Zedddd�Zeddd d
�Zeddd
d�Zeddddd�Ze�d�Zdd� Zedd� �Zdd� Zdd� Zdd� Zdd � Zd!d"� Z d#d$� Z!d%d&� Z"d'd(� Z#d)d*� Z$d+d,� Z%d-d.� Z&d/d0� Z'd1d2� Z(d3d4� Z)d5d6� Z*d7d8� Z+d9d:� Z,d;d<� Z-d=d>� Z.dwd@dA�Z/dBdC� Z0dDdE� Z1dwdFdG�Z2dHdI� Z3dJdK� Z4dLdM� Z5dxdOdP�Z6dQdR� Z7dSdT� Z8dUdV� Z9dydYdZ�Z:d[d\� Z;dwd]d^�Z<d_d`� Z=dadb� Z>dcdd� Z?dedf� Z@dzdgdh�ZAdxdidj�ZBdxdkdl�ZCdmdn� ZDdxdodp�ZEdxdqdr�ZF Ndxdsdt�ZGdxdudv�ZHdNS ){�TicketModule�timeline�ticket_show_details�truezcEnable the display of all ticket changes in the timeline, not only
open / close operations.�ticket_show_component�falsezUEnable the display of component of tickets in the timeline.
(''since 1.1.1'')�newticket_formatter�onelinerz�Which formatter flavor (e.g. 'html' or 'oneliner') should be
used when presenting the description for new tickets.
If 'oneliner', the [timeline] abbreviated_messages option applies.
�ticket�preserve_newlines�defaultz�Whether Wiki formatter should respect the new lines present
in the Wiki text.
If set to 'default', this is equivalent to 'yes' for new environments
but keeps the old behavior for upgraded environments (i.e. 'no').
�query�ticketlink_queryz?status=!closedz�The base query to be used when linkifying values of ticket
fields. The query is a URL query
string starting with `?` as used in `query:`
[TracQuery#UsingTracLinks Trac links].
)rX �docz/ticket/([0-9]+)$c C s t � | _d S �N)�set�_warn_for_moved_attr��self� ra �4/usr/lib/python3/dist-packages/trac/ticket/web_ui.py�__init__i s zTicketModule.__init__c C s"