B
    `4                 @   s   d dl mZ d dlmZ d dlmZ y d dlmZ eZd dlm	Z	 W n e
k
r\   dZY nX dZdd	 ZG d
d deZdd Zdd ZdS )    )
DebugPanel)
debug_repr)STATIC_PATH)IIntrospector)object_descriptionFTc             C   s   | S )N )xr   r   q/home/kop/projects/devel/pgwui/test_venv/lib/python3.7/site-packages/pyramid_debugtoolbar/panels/introspection.py<lambda>       r
   c               @   s>   e Zd ZdZdZeZe ZdZedZ	e	Z
dd Zdd Zd	S )
IntrospectionDebugPanelz@
    A panel to display generic Pyramid introspection info.
    Zintrospectionz;pyramid_debugtoolbar.panels:templates/introspection.dbtmakoZIntrospectionc             C   s$   |j j}| }|tttd| _d S )N)categorizedr   r   nl2br)registryintrospectorr   r   r   r   data)selfrequestr   r   r   r   r	   __init__   s    z IntrospectionDebugPanel.__init__c             C   s   d| tiS )NZstatic_path)Z
static_urlr   )r   r   r   r   r	   render_vars(   s    z#IntrospectionDebugPanel.render_varsN)__name__
__module____qualname____doc__namehas_contentZ	is_activetemplate_titleZ	nav_titler   r   r   r   r   r	   r      s   
r   c             C   s   |  ddS )N
z<br/>)replace)sr   r   r	   r   ,   s    r   c             C   s   | j tdd d S )NT)	is_global)Zadd_debugtoolbar_panelr   )configr   r   r	   	includeme0   s    r$   N)Zpyramid_debugtoolbar.panelsr   Zpyramid_debugtoolbar.reprr   Zpyramid_debugtoolbar.utilsr   Zpyramid.interfacesr   Zpyramid.utilr   ImportErrorr   r   r   r   r$   r   r   r   r	   <module>   s   
