Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/system-config-network/netconfpkg/exception.pyc
OLc@s{dZddkZdZddkZeiedeiedZddkZeeid<hZ	ddZ
d	Zd
ZdddddZdad
ZdadZdadZdddZdddZedjo}dZdZddkZdZdZeddeedZdefdYZyeieidddddg\Z Z!xe D]\Z"Z#e"djp
e"d jo
dZqne"d!jp
e"d"jo
dZqne"d#jp
e"d$joeei$dqqWWn0eiefj
oeei$dnXeddeeeei$dnd%Z%dS(&s
Module for a userfriendly exception handling

Example code:

import sys

from exception import action, error, exitcode, installExceptionHandler

installExceptionHandler("test", "1.0", gui=0, debug=0)

def exception_function():
    action("Trying to divide by zero")

    try:
        local_var_1 = 1
        local_var_2 = 0
        # test exception raised to show the effect
        local_var_3 = local_var_1 / local_var_2
    except:
        error("Does not seem to work!? :-)")
        exitcode(15)
        raise

iNssystem-config-networks/usr/share/localecCs
ti|S((tgettexttlgettext(tx((s8/usr/share/system-config-network/netconfpkg/exception.pyt<lambda>4st_icCsddk}ti|ptt|<n|iddS|iiidp|iiido|id|fdS|id|iid|d	}x4|iiD]#\}}t	||i
jo|id
||fd}xn|D]f}|p|idnd
}t	||ijot|||dq|id|fqW|idqt	||i
jo|id||fd}x|iD]\}	}
|p|idnd
}t	|	|ijo|id|	fn|id|	ft	|
|ijot|
||dq|id|
fqW|idqt	||ijo/|id||ft|||dq|id|||fqWdS(sdumps all classesiNsAlready dumped
t__str__t__repr__s%s
s!%s instance, containing members:
t is%s%s: [is, is%ss]
s%s%s: {s'%s': s%s: s}
s%s%s: s	%s%s: %s
(ttypest
__DUMPHASHthas_keytTruetwritet	__class__t__dict__t__name__titemsttypetListTypetInstanceTypet__dump_classtDictTypet
StringType(tinstancetfdtlevelRtpadtkeytvaluetfirsttitemtktv((s8/usr/share/system-config-network/netconfpkg/exception.pyR:sZ
	
cCs|i||}x|io
|i}qW|i}|idy;x4|iiD]#\}}|id||fqWWWnnXdS(swrite a traceback to "out"s%
Local variables in innermost frame:
s%s: %s
N(Rttb_nextttb_frametf_localsR(toutttextttracebkttracetframeRR((s8/usr/share/system-config-network/netconfpkg/exception.pyt__dump_exceptionos

	
cCsddk}|i|d|i}|itdd|itdd|i|id|id|id}|i	||i
}|i||id	t
|id
t
|i}|i|i|i||i|i|i|it
}|idtd|}	|i|	}
|
it|i|t|ii|
t
|ii|t|iid|iid|id
d|i|i|i|i}|i |S(s+Creates a dialog and displays the exceptioniNt_Debugis
_Save to fileiiiteditabletcursor_visiblesAn unhandled exception has occurred.  This is most likely a bug.  Please save the crash dump and file a detailed bug report against %s at https://bugzilla.redhat.com/bugzillaiii,(!tgtktDialogtNonetDIALOG_MODALt
add_buttonRt
STOCK_QUITtset_border_widtht
TextBuffertset_texttTextViewt
set_buffertset_propertytFalsetScrolledWindowtset_shadow_typet	SHADOW_INtaddt
set_policytPOLICY_AUTOMATICtHBoxtLabelt
set_line_wrapRt
pack_starttvboxtset_spacingtset_size_requesttset_positiontWIN_POS_CENTERtshow_alltruntdestroy(ttitleR%tcomponent_nameR-twintmbufferttextboxtscwthboxttxttinfotrc((s8/usr/share/system-config-network/netconfpkg/exception.pyt__exception_windowsB




	


c
CsKddk}|djo
|i}n|i||i|iB||i|}|i||djoOt||i	o|i
|dqt||io|i|qn|djo5|i
t||io|iddqn|o!|i|i|i|n|i|i|i}	|i|	S(Nii(R-R/t
MESSAGE_ERRORt
MessageDialogR0tDIALOG_DESTROY_WITH_PARENTt
BUTTONS_OKt	set_titlet
isinstancetCListt
select_rowtNotebooktset_current_paget
grab_focustEntryt
select_regionRGtWIN_POS_CENTER_ON_PARENTtset_transient_forRHRJRK(
RLtmessaget
parent_dialogtmessage_typetwidgettpaget
broken_widgetR-tdialogtret((s8/usr/share/system-config-network/netconfpkg/exception.pyt_generic_error_dialogs0

	
		




tcCs
|adS(s=Describe what you want to do actually.
    what - string
    N(t__ACTION_STR(twhat((s8/usr/share/system-config-network/netconfpkg/exception.pytactionscCs
|adS(sIDescribe what went wrong with a userfriendly text.
    what - string
    N(t__ERROR_STR(Rq((s8/usr/share/system-config-network/netconfpkg/exception.pyterrorsi
cCst|adS(spThe exitcode, with which the exception handling routine should call
    sys.exit().
    num - int(exitcode)
    N(tintt
__EXITCODE(tnum((s8/usr/share/system-config-network/netconfpkg/exception.pytexitcodesic Cs_|\}}}|pf|ptdttfGHn6ddk}td|ttf}	t||	dtitnti	t_
ddk}
ddk}|i
|||}|i|dd}
t|
o|
t|
d}
n|i||}|od|}	n|o|	d|}	n|	d	}	|
oNt|
d
jo;g}|i|
d
 |
ii|
d|d<|}
nd}yddki}|i|i|i}|ix5|
D]-}|t|d
7}|it|qW|i|i}Wncddk}|i}x5|
D]-}|t|d
7}|i t|q?W|i!}nX|	t|d d|7}	|	|d7}	|	d7}	|	di"|7}	|}x|i#o
|i#}qW|i$}|	d7}	y8x1|i%i&D] \}}|	d||f7}	qWWnnX|p|	GHtitnddk}|p!t||	dtitnxt'tdh|d6|	|}|	GH|djoI|oBddk(}ddk)}|i*||
i+|
i,|i-q|ptitq|i.tdd|i/|i0|i1|i2|i3f}|i4|i3|i5}||i3jo|i6}|i7|p
d}ny*t8|d}|i9|	|i:Wn-t;j
o!t|td|dqKXt|td|dddtitq|i7qqtitdS(s

    The exception handling function.

    progname - the name of the application
    version  - the version of the application
    gui      - display a gtk dialog (0, 1) to show the error message
    debug    - show the full traceback (with "Save to file" in GUI)
    s
Error: %s: %siNs
%s

%s:
%stlimitisComponent: %s
sVersion: %s
sSummary: TBiiRot:iRs
s%
Local variables in innermost frame:
s%s: %s
s!%(progname)s - Exception OccurredtprognamesSpecify a file to save the dumps	/tmp/dumptwsFailed to write to file %s.sGThe application's state has been successfully
written to the file '%s'.RhRT(<RRpRsR-RnR/tsystexitRvt__excepthook__t
excepthooktos.patht	tracebacktformat_exceptiont
extract_tbtlentformat_exception_onlytextendtpathtbasenametnss.nsstnsst
nss_init_nodbtcreate_digest_contexttSEC_OID_MD5tdigest_begintstrt	digest_optdata_to_hextdigest_finalthashlibtmd5tupdatet	hexdigesttjoinR!R"R#RRVtpdbtsignaltpost_mortemtkilltgetpidtSIGKILLtFileChooserDialogtFILE_CHOOSER_ACTION_SAVEtSTOCK_CANCELtRESPONSE_CANCELt
STOCK_SAVEtRESPONSE_OKtset_default_responseRJtget_filenameRKtopenRtclosetIOError( t.0R{tversiontguitdebugtetypeRttbR-R%tosRtelistttblasttextxttlltntextRtcontextttRRtmR'R(RRURRtdttfileR$((s8/usr/share/system-config-network/netconfpkg/exception.pythandleMyExceptions







	

	


		

csfdt_dS(s
    Install the exception handling function.

    progname - the name of the application
    version  - the version of the application
    gui      - display a gtk dialog (0, 1) to show the error message
    debug    - show the full traceback (with "Save to file" in GUI)
    cst|||fS((R(RRR(RR{RR(s8/usr/share/system-config-network/netconfpkg/exception.pyRzsN(R}R(R{RRR((RR{RRs8/usr/share/system-config-network/netconfpkg/exception.pytinstallExceptionHandlerqs	t__main__cCsItdyd}d}||}WntdtdnXdS(NsTrying to divide by zeroiisDoes not seem to work!? :-)i(RrRtRx(tlocal_var_1tlocal_var_2tlocal_var_3((s8/usr/share/system-config-network/netconfpkg/exception.pyt_exception_functions


cCsdtidGHdS(Ns%s [-dgh] [--debug] [--gui] [--help]
    -d, --debug
        Show the whole backtrace

    -g, --gui
        Display a gtk error dialog

    -h, --help
        Display this messagei(R}targv(((s8/usr/share/system-config-network/netconfpkg/exception.pyt_usages	ttests1.0tBadUsagecBseZdZRS(s&exception for a bad command line usage(Rt
__module__t__doc__(((s8/usr/share/system-config-network/netconfpkg/exception.pyRstdghRthelpRs-ds--debugs-gs--guis-hs--helps Harald Hoyer <harald@redhat.com>(&RR}tPROGNAMERtbindtextdomaint
textdomainRt__builtin__RR	RR)RVR/RnRpRrRsRtRvRxRRRRRtgetoptt__debugt__guit	ExceptionRRt__optst__argst__optt__valR~t
__author__(((s8/usr/share/system-config-network/netconfpkg/exception.pyt<module>+sl
	
5		, 			

	
	

haha - 2025