Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/tracer/views/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/tracer/views/__pycache__/default.cpython-36.opt-1.pyc

3

"ed�@s�ddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZdd	l
mZdd
lmZddlZGdd
�d
e�ZdS)�)�print_function)�unicode_literals�)�View)�_)�Applications)�NoteForHiddenView)�
BlocksView)�StringIO)�version_infoNc@seZdZdd�ZdS)�DefaultViewcs�fdd�}�fdd�}�fdd�}�fdd�}�fd	d
�}dtd�|�d
�dtd�|�d
�dtd�|�d
�g}�jjjr�|jdtd�|tjd�d
��|jdtd�|tjd�d
��n|jd|�i�t�j�}|jd|�|j	��r�j
td��|j�dS)Ncs�d}tjdtjdtjdg}�jjj�j|�j�jd�}xF|D]>}dj|j	�}|j
rp|jrp|dj|j
�7}|d|d	7}qBW|S)
N��SESSION�STATIC�ERASED�helperz; z  # {}z      �
)r�TYPES�args�applications�with_helpers�
exclude_types�unique�sorted�join�helpersZhelper_contains_formatingZhelper_contains_name�format�name)�content�typesr�applicationr)�self��/usr/lib/python3.6/default.py�with_helpers_contents

z0DefaultView.render.<locals>.with_helpers_contentcsJd}�jjjtjd�j�j�jd�}x|D]}|d|jd7}q,W|S)Nr
rrz      r)	rrrrrrZwithout_helpersrr)r�appsr )r!r"r#�without_helpers_content s
z3DefaultView.render.<locals>.without_helpers_contentcsHd}�jjjtjdg�j�jd�}x|D]}|d|jd7}q*W|S)Nr
rrz      r)rr�filter_typesrrrrr)rr%r )r!r"r#�erased_content+s
z*DefaultView.render.<locals>.erased_contentcsFd}�jjj�j|g�j�jd�}x|D]}|d|jd7}q(W|S)Nr
rz      r)rrrr'rrr)Zapp_typerrr )r!r"r#�unrestartable_content5s
z1DefaultView.render.<locals>.unrestartable_contentcs�t�}t|�}|jd�jj�|jdt�jj��|jd�jjjtjd��|jd�jjjtjd��|j	�t
jdkr�|j�S|j�j
d�S)	NrZtotal_countZ
session_countrZstatic_countr��utf8)r
r�assignr�lenrZ
count_typerr�renderr�major�getvalue�decode)r�view)r!r"r#�note_content@sz(DefaultView.render.<locals>.note_contentz  * zSome applications using:)�titlerzThese applications manually:zUninstalled applications:z+These applications restarting your session:rz+These applications rebooting your computer:rr�blockszYou should restart:)rr�all�appendrrr	�outr,Zhas_content_and_title�printr.)r!r$r&r(r)r3r5r2r")r!r#r.s*





zDefaultView.renderN)�__name__�
__module__�__qualname__r.r"r"r"r#rsr)Z
__future__rrr
rZtracer.resources.langrZtracer.resources.applicationsrZtracer.views.note_for_hiddenrZtracer.views.blocksr	Ztracer.resources.pycompr
�sysr�rerr"r"r"r#�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists