B
    ß%Q[  ã               @   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)Zrequest_nameZresponse_namer   Úrequest_valueZresponse_attribute)Úself© r   úlC:\Users\HIRONO~1\AppData\Local\Temp\pip-install-6i93dh7p\ldap3\ldap3\extend\novell\partition_entry_count.pyÚconfig$   s    zPartitionEntryCount.configNc             C   s*   t  | ||¡ |jrt|ƒ}t|ƒ| _d S )N)r   Ú__init__Zcheck_namesr
   r   r   )r   Ú
connectionZpartition_dnÚcontrolsr   r   r   r   *   s    zPartitionEntryCount.__init__c             C   sZ   | j }y&tj|tƒ d�\}}t|ƒ| jd< W n tk
rH   tdƒ‚Y nX |rVtdƒ‚d S )N)Zasn1Specr   zunable to decode substratezunknown substrate remaining)Zdecoded_responser	   Údecoder   ÚintÚresultÚ	Exceptionr   )r   Z	substrateÚdecodedr   r   r   Úpopulate_result0   s    z#PartitionEntryCount.populate_result)N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   #   s   
r   N)Ú__doc__Zpyasn1.type.univr   Zcore.exceptionsr   Z	operationr   Zprotocol.rfc4511r   Z
utils.asn1r	   Zutils.dnr
   r   r   r   r   r   Ú<module>   s   