HEX
Server: Apache
System: Linux iad1-shared-b8-33 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: samfetchero1 (10301780)
PHP: 8.1.33
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