PATH:
usr
/
share
/
l.v.e-manager
/
cpanel
/
utils
/
__pycache__
/
Editing: dynamicuictl.cpython-311.pyc
� 3@i�S � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl mZ d dlZ d dlmZ d dlmZmZmZmZmZ d dlmZ ej � e j d � � Zd Zd Zd� Zd e� � vrd � Z d� Z!d� Z" G d� de#� � Z$dd�Z%dd�Z& dd�Z' dd�Z(d d�Z)d� Z*edddfd�Z+d!d�Z,e-dk r e,� � dS dS )"� )�print_function)�division)�absolute_importN)�Dict)�Version)�file_writelines�file_readlines� file_write� file_read�grep)�UIConfigz/usr/local/cpanel/base/frontend) )�hideRubyApp� lverubysel� )� hidePythonApp�lvepythonselr )� hideNodeJsApp�lvenodejsselr )�hideLVEUserStat�lveresusager )� hidePhpApp� lvephpselr )�hideXrayApp�lvexrayr )�hideAccelerateWPApp�lvewposr )N� enduserlver )N�#cpu_and_concurrent_connection_usager c �> � t dt z � � t d� � t d� � t d� � t d� � t d� � t d� � t dd � d � t D � � � � z � � t d� � t d� � t d � � t d� � t d� � t d� � t D ]\ } }}t d | �d|��� � �t d� � t d� � t dt z � � t dt z � � t dt z � � t dt z � � d S )NzdUsage: %s [-h] [--show dynamicui_key1[,dynamicui_key2..]] [--hide dynamicui_key1[,dynamicui_key2..]]z<[--sync-conf conf_key1[,conf_key2..]] [--no-rebuild-sprites]zOptions:z) -h | --help :print this messagez, -v | --verbose :detail output actionsz8 --fix-dynamicui :fix new json-style dynamicui.confz2 --sync-conf :sync with dynamicui configsz" supported keys: all, %s� c �T � g | ]%}t |d t � � �|d ��&S �r )� isinstance�str��.0�k_s �5/usr/share/l.v.e-manager/cpanel/utils/dynamicuictl.py� <listcomp>zusage.<locals>.<listcomp>9 s4 � �:v�:v�:v�R�_i�jl�mn�jo�qt�_u�_u�:v�2�a�5�:v�:v�:v� zn --show dynamicui_key1[,dynamicui_key2..] :show app[s] in cPanel web-interface for userzn --hide dynamicui_key1[,dynamicui_key2..] :hide app[s] in cPanel web-interface for userz= --path PATH :path to specific dynamicui config filezM --no-rebuild-sprites :don't rebuild sprites after patching dynamicui configsz Association:z conf_key dynamicui_key� � z Examples:z; %s --hide=lverubysel --hide=lvepythonsel --show=enduserlvez4 %s --hide=lverubysel,lvepythonsel --show=enduserlvez( %s --sync-conf all --no-rebuild-spritesz* %s --sync-conf hideRubyApp, hidePythonApp)�print�NAME�join�sync_association)�c1�c2�_s r( �usager4 1 s� � � � p�sw� w�x�x�x� � H�I�I�I� �*���� � 5�6�6�6� � 8�9�9�9� � D�E�E�E� � >�?�?�?� � .����:v�:v�K[�:v�:v�:v�1w�1w� w�x�x�x� � P� Q� Q� Q� � P� Q� Q� Q� � I�J�J�J� � Z�[�[�[� �/���� � &�'�'�'�%� $� $� ��B�� ��2�2�2�r�r�"�#�#�#�#� �"�I�I�I� �,���� � G�$� N�O�O�O� � @�4� G�H�H�H� � 4�t� ;�<�<�<� � 6�� =�>�>�>�>�>r* �anyc � � | D ]}|r dS �dS )z� backported buildin function "any" for python 2.4 >>> any([False, False, False]) False >>> any([True, False, False]) True :param iterable: :return boll: TF� )�iterable�elements r( r5 r5 M s, � � � � �G�� ��t�t� ��ur* c �t � d}t j |� � }t j d|z t j � � }t j d� � }| � d� � }t |� � D ]c\ }}|� |� � rI|� |� � rd||<