관리-도구
편집 파일: cluseroptselect.cpython-37.pyc
B �v6d�] � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlm Z d dl mZ ddlm Z dd lmZ d d lmZ ddlmZ d dlmZ d d lmZ d dlmZmZmZmZmZ G dd� de �ZdS )� )�absolute_import)�print_function)�divisionN)�map)� iteritems� )�ClUserExtSelect)�ClSelectExcept)� clcaptain)�utils)�unescape)�ExternalProgramFailed)� PhpConfReader�PhpConfBaseException�PhpConfReadError�PhpConfLoadException�!PhpConfNoSuchAlternativeExceptionc @ s, e Zd ZdZdZd>dd�Zd?d d �Zd@dd�ZdAd d�ZdBdd�Z dd� Z dCdd�ZdDdd�Zdd� Z dd� Zdd� ZdEdd�Zee�ZdFd d!�Zee�ZdGd"d#�Zee�ZdHd$d%�Zd&d'� Zee�Zd(d)� Zd*d+� Zee�Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� Zd6d7� ZdId8d9�Zd:d;� Z d<d=� Z!dS )J�ClUserOptSelectz+ Class for processing user options z/etc/cl.selector/php.conf�phpNc C sJ t �| ||� i | _t� | _ddddddd�| _dd � t| j�D �| _d S ) Nz z"z'z>z<z&)� �"�'�>�<�&c S s i | ]\}}||�qS � r )�.0�k�vr r �I/opt/alt/python37/lib/python3.7/site-packages/clselect/cluseroptselect.py� <dictcomp>) s z,ClUserOptSelect.__init__.<locals>.<dictcomp>)r �__init__� _whitelist�set�_user_excludesZ_html_escape_tabler �_html_unescape_table)�self�item�exclude_pid_listr r r r! # s zClUserOptSelect.__init__FTc C sT i }|dkr*| j ||dd�}| �|||�}t�| j| j�| j�|��tj ||||�S )z� Inserts supplied options into current ones @param optset: string @param decoder: string @param � T)�optset�decoder�expect_separator) �_process_option_string�_remove_forbidden_optionsr �apply_for_at_least_one_user�insert_json_options�_clpwd� get_names�get_uidr �UnableToSaveData) r&