U
    Įwh"                     @   s*   d dl mZ d dlmZ G dd dZdS )    )cmfutil)	BaseModelc                   @   s0   e Zd ZdZddgZedd Zedd ZdS )	
SdeskToolsTsdesk_get_ui_full_path
sdesk_nonec              	   O   s   ddl m} tj||}|jdkrR|d|d d|d d|d	 d
d | sf|dd
d t|d tj	||d|iS )Nr   )	cmf_alert)Z
CmfProjectZCmfDocumentZCmfSDeskRequestTypeZCmfTasku$   Объект не найден id = idz ui_name = Zui_namez code = codeT)abortu   Нет доступаreadobj)
Zcmf.includer   r   Z_get_ui_full_path_obj
class_namegetZ_sdesk_check_accessr   Zacl_set_policyZget_ui_full_path)clsargskwargsr   r    r   +./modules/servicedesk/models/sdesk_tools.pyr      s    
0z!SdeskTools.sdesk_get_ui_full_pathc                 O   s   d S )Nr   )r   r   r   r   r   r   r   !   s    zSdeskTools.sdesk_noneN)__name__
__module____qualname__Z	api_allowZapi_methodsclassmethodr   r   r   r   r   r   r      s   
r   N)Zcmf.utilr   Z
cmf.modelsr   r   r   r   r   r   <module>   s   