U
    Įwh                     @   s*   d dl T d dlmZ G dd dejZdS )    )*)cmf_global_settingsc                   @   s&   e Zd Zejjdg Zedd ZdS )CmfGlobalSettings	sdesk_getc                 O   s0   ddddddg}| j |d}|r,t|d |S )	NZsd_html_schemeZallowed_attachment_extensionsZtask_attachment_max_sizeZdocument_attachment_max_sizeZtask_attachment_max_countZdocument_attachment_max_count)fieldsread)getZcmfutilZacl_set_policy)clsargskwargsr   res r   3./modules/servicedesk/models/cmf_global_settings.pyr   
   s    zCmfGlobalSettings.sdesk_getN)__name__
__module____qualname__r   r   Zapi_methodsclassmethodr   r   r   r   r   r      s
   r   N)Zcmf.includeZ
cmf.modelsr   r   r   r   r   r   <module>   s   