HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python2.7/site-packages/problem/__init__.pyo
ó
Ãv_c@sÇddlZddlZddlZddlmZmZmZmZddlTdZ	dZ
dZdZdZ
d	Zd
ZdZdgZie	d
6e
d6ed6ed6e
d6ed6ed6ed6Zdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd!efd"„ƒYZd#efd$„ƒYZeejƒd%„Zeejƒd&„Z ed'„Z!dS((iÿÿÿÿN(tproxiest	exceptionttoolstwatch(t*tjavatselinuxtCCpptPythont
Kerneloopstruntimetxorgt	libreportt
executabletJAVAtSELINUXtCCPPtPYTHONt
KERNELOOPStRUNTIMEtXORGtUNKNOWNtProblemcBs˜eZdZd„Zed„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„ZRS(sˆ
    Base class for the other problem types.

    No need to use this class directly, use one
    of the specific problem classes.

    cCsatƒ|_tƒ|_t|_d|_d|_||_||_	||_
tjƒ|_dS(N(
tdictt_datat_dirty_datatFalset
_persistedtNonet_proxyt_probdirttypetanalyzertreasonRt	get_proxy(tselfttypR!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__init__'s						cCsž|r4t|ƒtkr4|jƒr4t|ƒ}nitjjd„fd6}||krŠ||\}}|r{|}n||ƒ}n|ršt|ƒS|S(NcSs
|jdƒS(Ns%s(tstrftime(tx((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt<lambda>;sttime(Rtstrtisdigittinttdatetimet
fromtimestamp(R#tattrtvaltreversetmappingtfuntrevfun((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__cast3s%		
cCsÚtdj|ƒƒ}d}||jkrF|j|dkrF|‚n||jkre|j|}n|jr–|jj|j|ƒ}||j|<n|dkr«|‚n|j	||ƒ}t
t|ƒj||ƒ|S(Nsobject has no attribute '{0}'(
tAttributeErrortformatRRRRRtget_itemRt_Problem__casttsuperRt__setattr__(R#R/texcR0((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__getattr__Js"			cCsVtt|ƒj||ƒ|ddksR||j|<|jrR||j|<qRndS(Nit_(R:RR;RRR(R#R/tvalue((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR;bs

	cCsJ|j|ƒtt|ƒj|ƒ|j|=|jrFd|j|<ndS(N(R=R:Rt__delattr__RRRR(R#R/((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR@is


	cCs7y|j|ƒSWntk
r2}t|ƒ‚nXdS(N(R=R6tKeyError(R#R/te((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__getitem__qscCs|j||ƒdS(N(R;(R#R/R?((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__setitem__wscCs7y|j|ƒWntk
r2}t|ƒ‚nXdS(N(R@R6RA(R#R/RB((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__delitem__zscCsdj|jj|jƒS(Ns<problem.{0} ({1})>(R7t	__class__t__name__R!(R#((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt__repr__€scCsEtjƒ|_tjƒ|_tjjtjƒddƒ|_	dS(sX Add pid, gid and executable of current
        process to this problem object

        iÿÿÿÿiN(
tostgetpidtpidtgetgidtgidtpathtabspathtinspecttstackR
(R#((s6/usr/lib64/python2.7/site-packages/problem/__init__.pytadd_current_process_dataƒscCsHd|_x8tjjƒD]'\}}|jdj||ƒ7_qWdS(s; Add environment of current process to this problem object ts{0}={1}
N(tenvironRIt	iteritemsR7(R#tkeyR?((s6/usr/lib64/python2.7/site-packages/problem/__init__.pytadd_current_environmentŽs	cCs
|jjƒS(N(Rtitems(R#((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRX”scCs?x8tD]0}t||ƒstjdj|ƒƒ‚qqWdS(NsMissing required field {0}(tREQUIRED_FIELDSthasattrRtValidationErrorR7(R#tfield((s6/usr/lib64/python2.7/site-packages/problem/__init__.pytvalidate—s
c	Cs|jƒtƒ}x?|jjƒD].\}}|j||dtƒ|t|ƒ<q#W|jrÝxm|jjƒD]\\}}|dkrŸ|j
j|j|ƒqn|j
j
|j||j||dtƒƒqnWtƒ|_n1|j
j|ƒ}t|_t|ƒ|_|jSdS(sê Create this problem or update modified data

        Create or update the project if some of its fields
        were modified.

        Return ``None`` in case of modification, identifier
        if new problem was created.

        R1N(R]RRRUR9tTrueR*RRRRtdel_itemRtset_itemtcreate(R#tstr_dataRVR?tret((s6/usr/lib64/python2.7/site-packages/problem/__init__.pytsaves

	&		cCs>|jr:|jj|jƒt|_d|_i|_ndS(s Delete this problem N(RRtdeleteRRRR(R#((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRe¿s
			(RGt
__module__t__doc__R%RR9R=R;R@RCRDRERHRRRWRXR]RdRe(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRs 													"tJavacBseZdZd„ZRS(s Java problem cCstt|ƒjt|ƒdS(N(R:RhR%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%Ês(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRhÈstSelinuxcBseZdZd„ZRS(s Selinux problem cCstt|ƒjt|ƒdS(N(R:RiR%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%Ðs(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRiÎstCcppcBseZdZd„ZRS(s C, C++ problem cCstt|ƒjt|ƒdS(N(R:RjR%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%Ös(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRjÔscBseZdZd„ZRS(s Python problem cCstt|ƒjt|ƒdS(N(R:RR%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%Üs(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRÚscBseZdZd„ZRS(s Kerneloops problem cCstt|ƒjt|ƒdS(N(R:R	R%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%âs(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR	àstXorgcBseZdZd„ZRS(s Xorg problem cCstt|ƒjt|ƒdS(N(R:RkR%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%ès(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRkæstRuntimecBseZdZd„ZRS(s Runtime problem cCstt|ƒjt|ƒdS(N(R:RlR%R(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%îs(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRlìstUnknowncBseZdZd„ZRS(s Unknown problem cCstt|ƒjd|ƒdS(NR(R:RmR%(R#R!((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR%ôs(RGRfRgR%(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyRmòscs4ˆj}|rˆj}nt‡fd†|ƒƒS(sì Return the list of the problems

    Use ``auth=True`` if authentication should be attempted.

    If authentication via polkit fails, function behaves
    as if ``auth=False`` was specified (only users problems are
    returned).
    cstj|ˆƒS(N(Rt
problemify(R'(t__proxy(s6/usr/lib64/python2.7/site-packages/problem/__init__.pyR(s(tlisttlist_alltmap(tauthRoR3((Ros6/usr/lib64/python2.7/site-packages/problem/__init__.pyRpøs		cCs>|j}|r|j}n||ƒkr.dStj||ƒS(s« Return problem object matching ``identifier``

    Return ``None`` in case the problem does not exist.

    Use ``auth=True`` if authentication should be attempted.

    N(RpRqRRRn(t
identifierRsRoR3((s6/usr/lib64/python2.7/site-packages/problem/__init__.pytgets		cCs
tj|ƒS(s Return ``ProblemWatcher`` object which can be used
    to attach callbacks called when new problem is created

    Use ``auth=True`` if authentication should be attempted for
    new problem that doesn't belong to current user. If not
    set such a problem is ignored.

    (RtProblemWatcher(Rs((s6/usr/lib64/python2.7/site-packages/problem/__init__.pytget_problem_watchers
("RIRPR-tproblemRRRRt_pyabrtRRRRRRRRRYt
PROBLEM_TYPEStobjectRRhRiRjRR	RkRlRmRR"RpRuRw(((s6/usr/lib64/python2.7/site-packages/problem/__init__.pyt<module>sD"
	
©