
    c!                     0    d dl Z d dlZ G d d          ZdS )    Nc                   (    e Zd ZddZd Zd Zd ZdS )VypotFc                 l   || _         | j         j        d         | _        t          |d          r| j         j        | _        n|| _        d | _        d | _        | j         j        d         dz   }t          j        	                    |          s#t          d           t          j        d           || _        d S )Nreports
do_verboseindatz/vypotzvypot needs an indat_fudir   )edirsfolderhasattrr   repcode	issuedateospathisdirprintsysexit
indat_fudi)selferimpr   r   s       !/home/ernad/ernad/python/vypot.py__init__zVypot.__init__	   s    fk),5,'' 	)"f/DOO(DO V[)H4
w}}Z(( 	-...HQKKK$t    c                    || j         j        v r	|| _        dS |9t          d| t          j                   | j        rt	          j        d           t          d| dt          j                   | j        rt	          j        d           dS )NTz&vypot: you can't set the issuedate to filer   vypot: z is not an issuedateF)r	   
issuedatesr   r   r   stderrr   r   r   whats     r   set_issuedatezVypot.set_issuedate   s    46$$$!DN4<A4AAz# # # # 2222DDDD? 	HQKKKur   c                    || j         j        v r	|| _        dS |9t          d| t          j                   | j        rt	          j        d           t          d| dt          j                   | j        rt	          j        d           dS )NTz$vypot: you can't set the repcode to r   r   r   z is not a repcodeF)r	   reconsr   r   r   r    r   r   r!   s     r   set_repcodezVypot.set_repcode*   s    46=  DL4<???z# # # # ////cjAAAA? 	HQKKKur   c                     | j         dz   | j        z   }|d| j        z   dz   z  }t          j                            |          rdS dS )N/z.jsonTF)r   r   r   r   r   isfile)r   	test_fufis     r   is_it_via_indatzVypot.is_it_via_indat8   sK    Oc)DL8	S4>)G33	7>>)$$ 	4ur   N)F)__name__
__module____qualname__r   r#   r&   r+    r   r   r   r      sU           &        r   r   )r   r   r   r/   r   r   <module>r0      sI    				 



7 7 7 7 7 7 7 7 7 7r   