U
    9Lf                     @   s    d dl T G dd dejjZdS )    )*c                   @   s(   e Zd ZdZejjeedddZdS )ConfluenceDisplayViewz0/display/<string:project_code>/<string:doc_name>)project_codedoc_namec                 C   sX   ddl m} ||}tjj|d}|rPtjj|j|d}|rPtt	  |j
 S tdS )Nr   )unquote_plus)Ztask_code_prefix)projectname/)urllib.parser   ZmodelsZ
CmfProjectsgetZCmfDocumentgetidZredirectZapp_base_hrefZhref)selfr   r   r   r   Zdocument r   5./modules/confluence/views/confluence_display_view.pyr      s    zConfluenceDisplayView.getN)	__name__
__module____qualname__Z__url__cmfviewsactionstrr   r   r   r   r   r      s   r   N)Zcmf.includer   r   ZBaseViewr   r   r   r   r   <module>   s   