File: //lib64/python3.9/site-packages/ldap/schema/__pycache__/models.cpython-39.opt-1.pyc
a
�.d�O � @ s� d Z ddlZddlZddlmZ ddlmZmZ h d�Z G dd� d�Z
G dd � d e
�Zej�ddd
ddd
��Z
G dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de
�ZG dd� de�ZdS )zf
schema.py - support for subSchemaSubEntry information
See https://www.python-ldap.org/ for details.
� N)�UserDict)�split_tokens�extract_tokens> z1.3.6.1.4.1.1466.115.121.1.10z1.3.6.1.4.1.1466.115.121.1.28z1.3.6.1.4.1.1466.115.121.1.40z1.3.6.1.4.1.1466.115.121.1.23z1.3.6.1.4.1.1466.115.121.1.8z1.3.6.1.4.1.1466.115.121.1.9z1.3.6.1.4.1.1466.115.121.1.5z1.3.6.1.4.1.1466.115.121.1.4z1.3.6.1.4.1.1466.115.121.1.49c @ sV e Zd ZdZddiZddd�Zdd� Zd d
� Zdd� Zddd�Z ddd�Z
dd� ZdS )�
SchemaElementa�
Base class for all schema element classes. Not used directly!
Arguments:
schema_element_str
String which contains the schema element description to be parsed.
(Bytestrings are decoded using UTF-8)
Class attributes:
schema_attribute
LDAP attribute type containing a certain schema element description
token_defaults
Dictionary internally used by the schema element parser
containing the defaults for certain schema description key-words
�DESC�NNc C sJ t |t�r|�d�}|rFt|�}| �|d � t|| j�}| �||� d S )Nzutf-8� )�
isinstance�bytes�decoder �set_idr �token_defaults�
_set_attrs)�selfZschema_element_str�l�d� r �8/usr/lib64/python3.9/site-packages/ldap/schema/models.py�__init__1 s
zSchemaElement.__init__c C s |d d | _ d S )Nr r )�desc�r r r r r r r : s zSchemaElement._set_attrsc C s
|| _ d S r ��oid�r Z
element_idr r r r >