Edit File: nopanel.cpython-37.opt-1.pyc
B �e� � @ s� d dl mZ d dl mZ d dl mZ d dlmZ d dlmZ d dlm Z d dl mZ d dlm Z e Zd d � Zdd� Zd d� Zddd�Zddd�ZG dd� de �ZdS )� )�absolute_import)�division)�print_function)�Dict)�NotSupported)�UNKNOWN_CP_NAME)�Feature)�GeneralPanelPluginV1c C s dS )z� Retrieve panel name and it's version :return: dict: { 'CPName': 'panel_name', 'CPVer': 'panel_version', 'CPAdd': 'add_info'} or None if can't get info N� r r r ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.5-1.el8.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/cpapi/plugins/nopanel.py�get_cp_description s r c C s t d��d S )Nz=Unable to receive data. Not supported without a control panel)r r r r r � db_access s r c C s t dddid���dS )z_ return all users list registered on Control Panel :return: tuple registered users z&%(action)s is not currently supported.�actionz1Getting all users registered in the control panel)�message�contextN)r r r r r �cpusers s r NFc C s t d��d S )Nz=Unable to receive data. Not supported without a control panel)r )�cplogin_lst�with_system_usersr r r �dblogin_cplogin_pairs) s r c C s ddl m} || d�S )zs Gets admin email :param str|None _hostname: for testing :return: admin's email :rtype: string r )�get_admin_email)� _hostname)Z clcommon.cpapi.plugins.universalr )r r r r r r - s r c s� e Zd Z� fdd�Zdd� Zdd� Zdd� Zd d � Zdd� Zd2dd�Z d3dd�Z dd� Zd4dd�Zd5dd�Z d6dd�Zdd� Zdd � Zed!d"� �Zd#d$� Zd%d&� Zd7d'd(�Zd8d)d*�Zd+d,� Zd-d.� Zeeef d/�� fd0d1�Z� ZS )9�PanelPluginc s t t| ��� d S )N)�superr �__init__)�self)� __class__r r r 9 s zPanelPlugin.__init__c C s t S )z4 Return panel name :return: )� __cpname__)r r r r � getCPName<