a "ed @sddlmZddlmZddlmZddlmZddlmZddl m Z ddl m Z dd l mZdd lmZdd lZGd d d eZd S))print_function)unicode_literals)View)_) Applications)NoteForHiddenView) BlocksView)StringIO) version_infoNc@seZdZddZdS) DefaultViewcsfdd}fdd}fdd}fdd}fd d }d td |d d td|d d td|d g}jjjr|d td|tjdd |d td|tjdd n|d|itj}|d|| r td| dS)Ncsd}tjdtjdtjdg}jj|d}|D]<}d|j }|j rl|j sl|d |j 7}|d|d 7}q@|S) NSESSIONSTATICERASEDhelperz; z # {}  )rTYPESargs applications with_helpers exclude_typesuniquesortedjoinhelpersZhelper_contains_formatingZhelper_contains_nameformatname)contenttypesr applicationrself8/usr/lib/python3.9/site-packages/tracer/views/default.pywith_helpers_contents   z0DefaultView.render..with_helpers_contentcsFd}jjtjdd}|D]}|d|jd7}q*|SNr rrrr) rrrrrrZwithout_helpersrrrZappsr!r"r$r%without_helpers_content s z3DefaultView.render..without_helpers_contentcsDd}jjtjdgd}|D]}|d|jd7}q(|Sr')rr filter_typesrrrrrr(r"r$r%erased_content+s z*DefaultView.render..erased_contentcsBd}jj|gd}|D]}|d|jd7}q&|S)Nr rrr)rrrr*rrr)Zapp_typerrr!r"r$r%unrestartable_content5s z1DefaultView.render..unrestartable_contentcst}t|}|djj|dtjj|djjtjd|djjtjd| t j dkr| S| dS) NrZ total_countZ session_countrZ static_countrutf8)r rassignrlenrZ count_typerrrenderr majorgetvaluedecode)rviewr"r$r% note_content@sz(DefaultView.render..note_contentz * zSome applications using:)titlerzThese applications manually:zUninstalled applications:z+These applications restarting your session:rz+These applications rebooting your computer:rrblockszYou should restart:) rrallappendrrr outr/Zhas_content_and_titleprintr1)r#r&r)r+r,r6r8r5r$r"r%r1s0          zDefaultView.renderN)__name__ __module__ __qualname__r1r$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%s