https://t.me/RX1948
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/trac/upgrades/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/trac/upgrades/__pycache__/db43.cpython-310.pyc
o

�k�`{
�@s@ddlmZddlmZddlmZgd�Zgd�Zdd�ZdS)	�)�backup_config_file)�printout)�_)�ReadonlyWikiPolicy�DefaultPermissionPolicy�LegacyAttachmentPolicy)�DefaultWikiPolicy�DefaultTicketPolicyrrcCs�|j�dd�}|tkr(t|d�|j�ddd�t��|j��|j�	d�dSd}d|vr=|j�	d�t
td	��d
}n|j�	d�d|vrV|j�	d
�t
td��d
}n|j�	d�|rft
td��dSdS)aAutomatically append DefaultWikiPolicy and DefaultTicketPolicy
    if permission_policies is the default value. Otherwise, echo a message
    about the need to manually add DefaultWikiPolicy and DefaultTicketPolicy
    to the list of permission_policies.
    �trac�permission_policiesz	.db43.bakz, z2Enabled DefaultWikiPolicy and DefaultTicketPolicy.Frz+DefaultWikiPolicy must be manually enabled.z�Notice: To enable the default permission policy for the *wiki* system,
trac.ini must be manually edited to add DefaultWikiPolicy to the list
of permission_policies in the [trac] section.
Tz"DefaultWikiPolicy already enabled.r	z-DefaultTicketPolicy must be manually enabled.z�Notice: To enable the default permission policy for the *ticket* system,
trac.ini must be manually edited to add DefaultTicketPolicy to the list
of permission_policies in the [trac] section.
z$DefaultTicketPolicy already enabled.zAFor more details see: https://trac.edgewall.org/wiki/TracUpgrade
N)�config�getlist�_old_defaultr�set�join�_new_default�save�log�inforr)�env�version�cursor�policies�print_upgrade_msg�r�4/usr/lib/python3/dist-packages/trac/upgrades/db43.py�
do_upgrades(

�rN)	�
trac.upgradesr�trac.util.textr�trac.util.translationrrrrrrrr�<module>s


https://t.me/RX1948 - 2025