403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-network/netconfpkg/exception.pyo
:Jc@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.pytexitcodesicCs|\}}}|pf|ptdttfGHn6ddk}td|ttf}	t||	dtitnti	t_
ddk}
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<|}n|i}d}x5|D]-}|t|d
7}|it|qW|	t|id d|7}	|	|d7}	|	d7}	|	di|
7}	|}x|io
|i}q:W|i}|	d7}	y8x1|iiD] \}}|	d||f7}	qxWWnnX|p|	GHtitnddk}|p!t||	dtitnxttdh|d6|	|}|	GH|djoI|oBddk}ddk }|i!||
i"|
i#|i$q|ptitq|i%tdd|i&|i'|i(|i)|i*f}|i+|i*|i,}||i*jo|i-}|i.|p
d}ny*t/|d}|i0|	|i1Wn-t2j
o!t|td|dqXt|td|dddtitq|i.qqtitdS(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(3RRpRsR-RnR/tsystexitRvt__excepthook__t
excepthooktos.pathtmd5t	tracebacktformat_exceptiont
extract_tbtlentformat_exception_onlytextendtpathtbasenametnewtstrtupdatet	hexdigesttjoinR!R"R#RRVtpdbtsignaltpost_mortemtkilltgetpidtSIGKILLtFileChooserDialogtFILE_CHOOSER_ACTION_SAVEtSTOCK_CANCELtRESPONSE_CANCELt
STOCK_SAVEtRESPONSE_OKtset_default_responseRJtget_filenameRKtopenRtclosetIOError(t.0R{tversiontguitdebugtetypeRttbR-R%tosRRtelistttblasttextxttlltmtntextttR'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.pyRpsN(R}R(R{RRR((RR{RRs8/usr/share/system-config-network/netconfpkg/exception.pytinstallExceptionHandlergs	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_functionus


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		, 			{

	
	

Youez - 2016 - github.com/yon3zu
LinuXploit