ó Ãv_c@sÇddlZddlZddlZddlmZmZmZmZddlTdZ dZ dZ dZ dZ d Zd Zd Zd gZie d 6e d6e d6e 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„Z d „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|_||_||_ ||_ t j ƒ|_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;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|(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|ƒ|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__.pytsD   "   ©