관리-도구
편집 파일: backward_plugin.cpython-311.pyc
� P�Cg�+ � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZ e j � d � � d k Z G d� de� � ZdS ) � N)�Feature)�exec_utility)�defaultdict)�ClPwd)�lvectl_custompanel_script)�GeneralPanelPluginV1)�CPAPIExternalProgramFailed� USE_ENCHANCED_CUSTOM_LONG_SCRIPT�1c � � � e Zd Z� fd�Zd� Zd� Z dd�Z d� fd � Zd� Zd� fd� Z d � Z d� Zd� Zd� Z d� Zdd�Zdd�Zd� Zd� Z� fd�Zdd�Zdeedf fd�Z� xZS )�PanelPluginc �| �� t � � � � � t � � | _ d| _ d S )N�Unknown)�super�__init__r �_custom_script_name�_cp_name)�self� __class__s ���/builddir/build/BUILDROOT/alt-python27-cllib-3.4.17-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/cpapi/plugins/backward_plugin.pyr zPanelPlugin.__init__ s2 �� � ��������#<�#>�#>�� �!�� � � � c � � | j S )z4 Return panel name :return: )r �r s r � getCPNamezPanelPlugin.getCPName s � � �}�r c �* � | j �| j ddd�S dS )z� Retrieve panel name and it's version :return: dict: { 'name': 'panel_name', 'version': 'panel_version', 'additional_info': 'add_info'} or None if can't get info N�0)�name�version�additional_info)r r r s r �get_cp_descriptionzPanelPlugin.get_cp_description s$ � � �#�/� �M�c�d�S�S�S��tr N��cplogin�package�mail�reseller�dns�localeTc �2 � | � |||�� � S )N)�keyls�search_sys_users)�_cpinfo)r �cpuserr) r* s r �cpinfozPanelPlugin.cpinfo, s � ��|�|�F�%�BR�|�S�S�Sr �r"