U
    [e                     @   s&   dddZ dddZe efddZd S )	Nc                    s    fdd}d  |_ |S )za default method for missing renderer method

    for example, the support to write data in a specific file type
    is missing but the support to read data exists
    c                    s   t d  dS )/docstring is assigned a few lines down the line%s getter is not defined.NNotImplementedError)___	attribute X/var/www/html/services/stratfitenv/lib/python3.8/site-packages/pyexcel/internal/utils.pynone_presenter   s    z&default_getter.<locals>.none_presenterr   __doc__)r   r   r	   r   r
   default_getter   s    
r   c                    s    fdd}d  |_ |S )za default method for missing parser method

    for example, the support to read data in a specific file type
    is missing but the support to write data exists
    c                    s   t d  dS )r   %s setter is not defined.Nr   )Z_xZ_yZ_zr   r	   r
   none_importer   s    z%default_setter.<locals>.none_importerr   r   )r   r   r	   r   r
   default_setter   s    
r   c                 C   sh   ||}||}t |||d}d|kr4|dd}n|}t| || t| d| | t| d| | dS )z1
    create custom attributes for each class
    )fgetfsetdoc.r   zget_%szset_%sN)propertyreplacesetattr)clsr   Z
doc_stringZgetter_funcZsetter_funcgettersetterZattribute_propertyr	   r	   r
   make_a_property   s    
r   )N)N)r   r   r   r	   r	   r	   r
   <module>   s   

