B
    `                 @   s   d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ dd Z	g Z
x0ejD ]&ZejZe
ejeje ed qPW ee
edd	Z
ed
jZG dd deZdd ZdS )    )
itemgetterN)text_)
DebugPanelc             C   s   | S )N )xr   r   l/home/kop/projects/devel/pgwui/test_venv/lib/python3.7/site-packages/pyramid_debugtoolbar/panels/versions.py<lambda>	       r   )versionlocation	lowernamenamer   )keyZpyramidc               @   s@   e Zd ZdZdZdZdZedZeZ	dd Z
dd	 Zd
d ZdS )VersionDebugPanelz
    Panel that displays the Python version, the Pyramid version, and the
    versions of other software on your PYTHONPATH.
    versionsTz6pyramid_debugtoolbar.panels:templates/versions.dbtmakoZVersionsc             C   s   |   td| _d S )N)platformpackages)get_platformr   data)selfrequestr   r   r   __init__'   s    zVersionDebugPanel.__init__c             C   s   t   S )N)r   )r   r   r   r   _get_platform_name-   s    z$VersionDebugPanel._get_platform_namec             C   s   dt jt|  df S )NzPython %s on %sutf8)sysr
   r   r   )r   r   r   r   r   0   s    zVersionDebugPanel.get_platformN)__name__
__module____qualname____doc__r   Zhas_contenttemplate_titleZ	nav_titler   r   r   r   r   r   r   r      s   r   c             C   s   | j tdd d S )NT)	is_global)Zadd_debugtoolbar_panelr   )configr   r   r   	includeme7   s    r$   )operatorr   pkg_resourcesr   r   Zpyramid_debugtoolbar.compatr   Zpyramid_debugtoolbar.panelsr   r    r   working_setdistributionproject_namer   appendr
   r   lowersortedget_distributionZpyramid_versionr   r$   r   r   r   r   <module>   s$   