HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/trac/upgrades/__pycache__/db45.cpython-310.pyc
o

�k�`��@s ddlZddlmZdd�ZdS)�N)�backup_config_filecsX�j�d�t�d������fdd�}|d�}||d�O}|r*t�d����dSdS)	z�Change [notification] ticket_subject_template and [notification]
    batch_subject_template to use syntax compatible with Jinja2.
    �notificationz
\$([\w.]+)csP���|�}|r&��|�r&��d|�}�j�d�|||����||�dSdS)Nz${\1}z#Replaced value of [%s] %s: %s -> %sTF)�get�match�sub�log�info�set)�name�	old_value�	new_value��config�env�re_template_var�section��4/usr/lib/python3/dist-packages/trac/upgrades/db45.py�update_templates
�z#do_upgrade.<locals>.update_template�ticket_subject_template�batch_subject_templatez	.db45.bakN)r�re�compiler�save)r�version�cursorr�updatedrr
r�
do_upgrades

�r)r�
trac.upgradesrrrrrr�<module>s