AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/lveapi.cpython-311.pyc |
� ".gN � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z mZ d dlmZ d dlZn # e$ r dZY nw xY wd dlmZ e � � ZdZd Zd ZdZ G d� d e� � Z G d� de� � Z G d� de� � Z G d� d� � Z G d� d� � Z G d� de� � Z G d� d� � Z! G d� d� � Z"dS )� N)�Optional)�uid_max)�ProcLve)�cpapi�ClPwd)�NotSupported)� ve_configi����reseller� � c � � e Zd ZdS )�NameMapErrorN��__name__� __module__�__qualname__� � �py/lveapi.pyr r ( � � � � � � ��Dr r c � � e Zd ZdS )�NameMapConfigErrorNr r r r r r , r r r c � � e Zd ZdS )�NameMapNotInitializedNr r r r r r 0 r r r c �J � e Zd ZdZefd�Zd� Zd� Zd� Zdd�Z d � Z d d �Zd� ZdS )�NameMapz� Container for backend storing resellers_name<=>resellers_id map As backend store use ve.cfg Usage: >>> name_map = NameMap() >>> name_map.link_xml_node() >>> name_map.id_list() [1001] c �0 � || _ d | _ d | _ d S �N)� _xml_tag_name� _xml_node�_reseller_id_name_map)�self�xml_tag_names r �__init__zNameMap.__init__@ s � �)������%)��"�"�"r c �N � | � � � D ]\ }}||k r|c S �d S r ��load_from_node)r"