U
    [e                  	   @   sl   d Z ddlmZ ejeje eje eje iejeje eje eje iiZ	dd Z
dd Zdd Zd	S )
z
    pyexcel.internal.attributes
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Book and sheet attributes

    :copyright: (c) 2015-2022 by Onni Software Ltd.
    :license: New BSD License
    )	constantsc                 C   s   ddl m} t|| || d S )N   )BookMeta)metar   register_an_attribute)targetactionattrr    r
   ]/var/www/html/services/stratfitenv/lib/python3.8/site-packages/pyexcel/internal/attributes.pyregister_book_attribute   s    r   c                 C   s   ddl m} t|| || d S )Nr   )	SheetMeta)r   r   r   )r   r   r	   r   r
   r
   r   register_sheet_attribute    s    r   c                 C   s   |t | tj krdS t | | | |tjkr>| | n
| | |t | tj koj|t | tj k}|rt | tj | t | tj | t | tj | | 	| dS )z$Register a file type as an attributeN)
ATTRIBUTE_REGISTRYr   	RW_ACTIONaddREAD_ACTIONZregister_inputZregister_presentationWRITE_ACTIONremoveZregister_io)Zmeta_clsr   r   r	   intersectionr
   r
   r   r   &   s    

r   N)__doc__Zpyexcelr   ZSHEETr   setr   r   ZBOOKr   r   r   r   r
   r
   r
   r   <module>   s*   	      