HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //lib/python3.6/site-packages/tracer/__pycache__/query.cpython-36.pyc
3

�|
`��@s`ddlmZddlmZddlmZddlmZddlm	Z	Gdd�de
�ZGdd	�d	e
�Zd
S)�)�Tracer)�System)�Rules)�Applications)�dump_memoryc@s6eZdZdZefdd�Zdd�Zdd�Zdd	d
�ZdS)�QueryaC
	Provide API for Tracer quering operations.
	They are executed kind of lazily, so running the operation will
	return just an wrapper class with ``get()`` method.

	Example::

		from tracer.query import Query
		q = Query()
		q.affected_applications().get()

	.. note::
		Some quering methods can require root permissions

	cCs|tj�ttt�|_dS)N)rZpackage_managerrrr�_tracer)�selfZtracer�r
�/usr/lib/python3.6/query.py�__init__+szQuery.__init__cCs||j_|S)z.List of ``Package`` that only should be traced)rZspecified_packages)r	Zpackagesr
r
r�
from_packages.szQuery.from_packagescCsd|j_|S)z�
		Pretend that specified packages have been updated just now.
		Benefit of this is absolutely no need for openning the package history database
		T)r�now)r	r
r
rr3sz	Query.nowNcCst|jjd|i�S)z?
		Return list of applications which use some outdated files
		�user)�LazyrZtrace_affected)r	rr
r
r�affected_applications;szQuery.affected_applications)N)	�__name__�
__module__�__qualname__�__doc__rrr
rrr
r
r
rrs
rc@seZdZdd�Zdd�ZdS)rcCs||_||_dS)N)�_method�_kwargs)r	�method�kwargsr
r
rrCsz
Lazy.__init__cCs|jf|j�S)N)rr)r	r
r
r�getGszLazy.getN)rrrrrr
r
r
rrBsrN)
Ztracer.resources.tracerrZtracer.resources.systemrZtracer.resources.rulesrZtracer.resources.applicationsrZtracer.resources.memoryr�objectrrr
r
r
r�<module>s(