o
    ßý°j  ã                   @   s`   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 dd	lmZ G d
d„ deƒZdS )Ú
é    )ÚIntegeré   )ÚLDAPExtensionErroré   )ÚExtendedOperation)ÚLDAPDN)Údecoder)Úsafe_dnc                   @   s&   e Zd Zdd„ Zddd„Zdd„ ZdS )	ÚPartitionEntryCountc                 C   s   d| _ d| _tƒ | _d| _d S )Nz2.16.840.1.113719.1.27.100.13z2.16.840.1.113719.1.27.100.14Úentry_count)Úrequest_nameÚresponse_namer   Úrequest_valueÚresponse_attribute)Úself© r   úœ/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/ldap3/extend/novell/partition_entry_count.pyÚconfig$   s   
zPartitionEntryCount.configNc                 C   s*   t  | ||¡ |jrt|ƒ}t|ƒ| _d S ©N)r   Ú__init__Úcheck_namesr
   r   r   )r   Ú
connectionÚpartition_dnÚcontrolsr   r   r   r   *   s   zPartitionEntryCount.__init__c                 C   sT   | j }ztj|tƒ d�\}}t|ƒ| jd< W n ty!   tdƒ‚w |r(tdƒ‚d S )N)Úasn1Specr   zunable to decode substratezunknown substrate remaining)Údecoded_responser	   Údecoder   ÚintÚresultÚ	Exceptionr   )r   Ú	substrateÚdecodedr   r   r   Úpopulate_result0   s   ÿÿz#PartitionEntryCount.populate_resultr   )Ú__name__Ú
__module__Ú__qualname__r   r   r#   r   r   r   r   r   #   s    
r   N)Ú__doc__Úpyasn1.type.univr   Úcore.exceptionsr   Ú	operationr   Úprotocol.rfc4511r   Ú
utils.asn1r	   Úutils.dnr
   r   r   r   r   r   Ú<module>   s    