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/__pycache__/ |
Upload File : |
o �k�`�� � @ s| d dl Z d dlZd dlmZ d dlmZmZmZ d dlm Z d dl mZmZ d dl T d dlmZmZ d dlmZmZ d d lmZ d d lmZmZmZmZmZmZ d dlmZmZ g d�Z G d d� de!�Z"G dd� de#�Z$G dd� de%�Z&G dd� de%�Z'G dd� de%�Z(G dd� de%�Z)G dd� de*�Z+G dd� de*�Z,G dd� de*�Z-G dd � d e*�Z.G d!d"� d"e/�Z0G d#d$� d$e*�Z1dS )%� N)�groupby)�AdminCommandError�IAdminCommandProvider�get_dir_list)�cached)�ExtensionOption�OrderedExtensionsOption)�*)�Resource�get_resource_name)�file_or_std�lazy)�time_now)�path_to_unicode�print_table�printout�stream_encoding� to_unicode�wrap)�_�N_)�IPermissionRequestor�IPermissionStore�IPermissionPolicy�IPermissionGroupProvider�PermissionError�PermissionSystemc s6 e Zd ZdZed�Zd� fdd� Zedd� �Z� Z S ) r z2Insufficient permissions to perform the operation.� ForbiddenNc sr || _ || _|| _| j r)| jr!| jjr!td| j t| j| j�d�}ntd| j d�}n|d u r1td�}t� �|� d S )Nzt%(perm)s privileges are required to perform this operation on %(resource)s. You don't have the required permissions.)�perm�resourcezd%(perm)s privileges are required to perform this operation. You don't have the required permissions.)r z2Insufficient privileges to perform this operation.)�actionr �env�idr r �super�__init__)�selfr r r! �msg�� __class__� �+/usr/lib/python3/dist-packages/trac/perm.pyr$ + s ��zPermissionError.__init__c C s | j d S �Nr )�args�r% r) r) r* �message>