a
    g+                     @   s   G d d dZ dS )c                   @   s0   e Zd ZdZdZdZdd Zdd Zdd Zd	S )
TS_OCR     c                 C   s   t d}d}d S )Nr   r   )float)self_poidsTotal_numBl r   ^/mnt/bigdisk/leo/remi/toosmart/soft/v2017b/4_specific/TOOSMART_DIGICOCHE/2_tools/ocr/TS_OCR.py__init__   s    zTS_OCR.__init__c                 C   s   | j S )N)r   )r   r   r   r	   getPoidsTotal
   s    zTS_OCR.getPoidsTotalc              
   C   s   zRdt | j d t | j d }| j| | j }|d dkrJW dS W dS W nD ty } z,td|d	t| td
 W Y d }~n
d }~0 0 d S )Nz7 SELECT COUNT(1) FROM tier_att WHERE 1 = 1 AND att17 = z AND actif = 1 AND att1 = ;r      TFzUnexpectedA err=z, type(err)=zERROR A2)	strr   
idAbattoircursorexecuteZfetchone	Exceptionprinttype)r   sqlresulterrr   r   r	   blExist   s$    

zTS_OCR.blExistN)	__name__
__module____qualname__r   r   	_debugOCRr
   r   r   r   r   r   r	   r      s   r   N)r   r   r   r   r	   <module>       