File: //usr/lib/python3/dist-packages/trac/wiki/__pycache__/intertrac.cpython-310.pyc
o
�k�` � @ s� d dl Z d dlmZ d dlT d dlmZmZmZmZ d dl m
Z
mZmZ d dl
mZ d dlmZ d dlmZ G d d
� d
e�ZdS )� N)�
ConfigSection)�*)�Element�Fragment�find_element�tag)�N_�_�tag_)�IRequestHandler)�IWikiMacroProvider)�extract_linkc @ sP e Zd ZdZeee� dZedd�Z dd� Z
dd� Zd d
� Zdd� Z
d
d� ZdS )�InterTracDispatcherzInterTrac dispatcher.F� intertraca0 This section configures InterTrac prefixes. Option names in
this section that contain a `.` are of the format
`<name>.<attribute>`. Option names that don't contain a `.` define
an alias.
The `.url` attribute is mandatory and is used for locating the
other Trac. This can be a relative path when the other Trac
environment is located on the same server.
The `.title` attribute is used for generating a tooltip when the
cursor is hovered over an InterTrac link.
Example configuration:
{{{#!ini
[intertrac]
# -- Example of setting up an alias:
t = trac
# -- Link to an external Trac:
genshi.title = Edgewall's Trac for Genshi
genshi.url = https://genshi.edgewall.org
}}}
c C s4 t �d|j�}|r|�d�r|�d�|jd<