%PDF- %PDF-
| Direktori : /opt/alt/python37/lib/python3.7/site-packages/clselect/__pycache__/ |
| Current File : //opt/alt/python37/lib/python3.7/site-packages/clselect/__pycache__/cluseroptselect.cpython-37.pyc |
B
��Ubh\ � @ 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�Zd?d
d�Zd@dd�Z dAdd�Z
dBdd�Zdd� Zdd� Z
dd� ZdCdd�Zee�ZdDdd�Zee�ZdEd d!�Zee�ZdFd"d#�Zd$d%� Zee�Zd&d'� Zd(d)� Zee�Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� ZdGd6d7�Zd8d9� Zd:d;� Z dS )H�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 sb | j �|�}xP| j �|�D ]@}i } |dkrH| j||dd�} | �| ||�} | �||| ||� qW dS )z�
Inserts supplied options into current ones
@param optset: string
@param decoder: string
@param
� T)�optset�decoder�expect_separatorN)�_clpwd�get_uid� get_names�_process_option_string�_remove_forbidden_options�insert_json_options)
r&