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/lib/python2.6/site-packages/firstboot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/firstboot/interface.pyo
Ñò
µBÖJc@s‹ddkZddkZddkZddkTddkTddkTddkTddkZd„Zddd„ƒYZ	dd	d„ƒYZ
dS(
iÿÿÿÿN(t*cCstid|ƒS(t	firstboot(tgettextt	ldgettext(tx((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt<lambda>stControlcBseZd„ZRS(cCsd|_g|_g|_dS(Ni(tcurrentPagethistoryt
moduleList(tself((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt__init__ s		(t__name__t
__module__R(((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyRst	InterfacecBs×eZeged„Zd„Zed„d„ƒZd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zddd„Zd„Zd„Zd„ZRS(cCstd|_d|_tƒg|_|id|_||_tiiƒ|_	tii
ƒ|_||_||_
dS(sCreate a new Interface instance.  Instance attributes:

           autoscreenshot -- If true, a screenshot will be taken after every
                             module is run.
           moduleList     -- A list of references to all the loaded modules.
                             This is not typically used, but is required to
                             make the interface work.
           testing        -- Is firstboot running under testing mode, where no
                             changes will be made to the disk?
        s/root/firstboot-screenshotsiN(t_screenshotDirt_screenshotIndexRt
_controlStackt_controlR	tgtktgdktscreen_widtht_x_sizet
screen_heightt_y_sizetautoscreenshotttesting(R
RR	R((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR&s				cCs||i_dS(N(RR	(R
R	((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_setModuleListBscCs
|iiS((RR	(ts((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyREscCs
|i|ƒS((R(Rtv((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyRFscGsÊt|iiƒdjoOt|iƒdjotitdƒƒdS|iiƒ|id|_n|ii	ƒtdƒjo|ii
dƒn|iiiƒ|i_|id|iiƒdS(Niis+Attempted to go back, but history is empty.iÿÿÿÿt_Finishsgtk-go-forwardtpageNum(
tlenRRRtloggingterrort_tpopt
nextButtont	get_labelt	set_labelRt
moveToPage(R
targs((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_backClickedHs
cCsŠ|itiijo|iiƒn`|itiijo|iiƒn9|itiijo"|i	ti
i@o|iƒndS(N(
tkeyvalRtkeysymstF12R%tclickedtF11t
backButtontPrinttstateRt
SHIFT_MASKttakeScreenshot(R
twindowtevent((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_keyRelease]s*cGs&|io|iƒn|iƒdS(N(RR4tadvance(R
R)((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_nextClickedes
cCs7|ii|iidjot|iƒdjƒdS(Nii(R0t
set_sensitiveRRR R(R
((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_setBackSensitivitykscCsxtt|iƒƒD]î}|iiƒ|iƒ\}}|iƒd}||joXdtidf}ti|ti	ƒo|i
|ƒq|i
dtidfƒqdtidf}ti|ti	ƒo|i
|ƒq|i
dtidfƒqWdS(Nis%s/%sspointer-white.pngspointer-blank.png(trangeR R	tsidebartget_childrentconfigtthemeDirtostaccesstF_OKt
set_from_filetdefaultThemeDir(R
tnumbertit	alignmenttlabeltpixtf((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_setPointerns
cCsn|iit|i|iƒ|itiiƒ}|ii	ƒ}|i
|d|i|iƒƒ|iƒt
S(Ni(t	sidebarBgtscale_simpletintRtaspectRatioRRtINTERP_BILINEARR5tcairo_createtset_source_pixbuft
get_heighttpainttFalse(R
tebR6tpixbuft
cairo_context((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt_sidebarExposedƒs 
cCsñ|i|ii}|i||iƒ}|tjodS|tjo¦|id|iidƒt|i	ƒdjor|iit|iƒdjo|i
itdƒƒqé|iit|iƒjo|i
ƒ|iƒqéqíndS(sÊCall the apply method on the currently displayed page, add it to
           the history, and move to the next page.  It is not safe to call this
           method from within firstboot modules.
        NRiR(R	RRtapplyRtRESULT_FAILUREtRESULT_JUMPR(R RR%R'R#tcheckReboottdestroy(R
tmoduletresult((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR8‹s

 
c	Cs¯t}x)|iD]}|iƒot}PqqW|p
|iodStiddtiti	t
dƒƒ}|itiƒ|i
ƒ|iƒ|iƒtidƒdS(s¯Check to see if any module requires a reboot for changes to take
           effect, displaying a dialog if so.  This method immediately reboots
           the system.
        NisFThe system must now reboot for some of your selections to take effect.s/sbin/reboot(RVR	tneedsReboottTrueRRt
MessageDialogtNonetMESSAGE_INFOt
BUTTONS_OKR#tset_positiontWIN_POS_CENTERtshow_alltrunR_RAtsystem(R
t
needRebootR`tdlg((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR^¨s

	


cCsìtiƒ|_|iitiƒ|iitƒtitdƒ|_ti	ƒ|_
|i
idƒy tdt
idfƒ|_Wn#tdt
idfƒ|_nXd|iiƒd|iiƒ|_tiƒ|_|ii|i
ƒ|i
id|iƒti	ƒ|_|iidƒt|i|iƒ}|ii||iƒ|iiƒtiƒ|_|ii ti!ƒ|ii"dƒ|iidƒti#dt$dd	d
t%dƒƒ|_&|i'ƒ|i&id|i(ƒ|ii)|i&ƒti#dt$dd
d
t%dƒƒ|_*|i*id|i+ƒ|ii)|i*ƒ|ii,|idtƒ|ii)|idtdtƒ|ii)|idt$dt$ƒ|ii|iƒ|iid|i-ƒ|iid|i.ƒ|iS(s0Create and initialize the main window.  This includes switching to
           fullscreen mode if necessary, adding buttons, displaying artwork,
           and other functions.  This method should also create the UI elements
           that make up the sidebar.  This method returns a gtk.Window.
        i
is%s/%ssfirstboot-left.pnggð?sexpose-eventt
use_underlinetstocksgtk-go-backRIt_BackR.sgtk-go-forwardt_ForwardtexpandtfillR_skey-release-event(/RtWindowtwinRhRit
set_decoratedRVtHBoxtmainHBoxtVBoxR=tset_border_widtht
loadPixbufR?R@RMREt	get_widthRTRPtEventBoxtleftEventBoxtaddtconnectRZtrightBoxRORtset_size_requestt
fullscreent
HButtonBoxt	buttonBoxt
set_layoutt
BUTTONBOX_ENDtset_spacingtButtonRcR#R0R;R*t
pack_startR%R9tpack_endR_R7(R
t	leftWidth((s7/usr/lib/python2.6/site-packages/firstboot/interface.pytcreateMainWindow¿sN  '

cCsžx—|iD]Œ}yi|iƒt|tƒo>|idjo.titdƒ|i	ƒ|ii
|ƒn|i|ƒWq
|ii
|ƒq
q
Xq
WdS(sÓCall the createScreen method on all loaded modules.  This loads the
           UI elements for each page and stuffs the rendered page into a UI
           wrapper containing the module's title and icon.
        s*Module %s did not set up its UI, removing.N(R	tcreateScreent
isinstancetModuletvboxReR!R"R#ttitletremovetrenderModule(R
R`((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt
createScreenss

 c	CsEx1|iD]&}titdƒ}tidƒ}|idt|iƒƒ|iddƒ|i	t
ƒ|iiƒ\}}|i
t|dƒdƒtidd	ƒ}y$|itd
tidfƒƒWn'|itd
tidfƒƒnX|i|tƒ|i|t
ƒ|ii|tt
dƒq
W|id
ƒdS(s6Add the sidebarTitle from every module to the sidebar.its+<span foreground='#FFFFFF'><b>%s</b></span>ggà?gffffffæ?iÿÿÿÿtyaligngš™™™™™É?s%s/%sspointer-blank.pngiiN(R	RRxRVtLabelt
set_markupR#tsidebarTitlet
set_alignmentt
set_line_wrapRcRtget_size_requestRƒROt	AlignmentR€tloadToImageR?R@RER‹RŒR=RL(R
R`thboxRItwthRH((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt
createSidebars$

$$cGs5ytiƒWn tj
otidƒnXdS(sCDestroy the UI, but do not take any other action to quit firstboot.iN(Rt	main_quittRuntimeErrorRAt_exit(R
R)((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR_9scCsŽt|iiƒƒdjo'|iiƒd}|ii|ƒn|i|ii}|iƒ|ii|i	ƒ|i
ƒ|iiƒdS(sÈDisplay the current module on the main portion of the screen.  This
           method should take into account that a module might be displayed
           already and should be removed first.
        iiN(
R R‚R>R”R	RRtinitializeUIR‹R’tfocusRvRj(R
t	oldModulet
currentModule((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt
displayModule@s

cCsr|djo3|djo&titdƒƒttdƒ‚n|dj	o|i||iƒ}n|t|iƒjo«t|iƒdjo{|ii	ƒ}|id|_
|i|i
i}t|t
ƒo|i|ig|_n|id|i
idƒdS|i
id7_dSn||i
ijo6|i
i|i
ijo|i
ii|i
iƒn||i
_t|i|t
ƒo°tƒ}d|_|i|i|_t|i|dƒo|i|i|_n
g|_|ii|ƒ||_
t|iƒdjo!|id|i
ii	ƒƒdSn|iƒ|i|idiƒ|iƒdS(sMove to and display the page given either by title or page number.
           This method raises SystemError if neither is provided, or if no
           page is found.  It is safe to call this method from within the apply
           method of modules, unlike advance().
        s7moveToPage must be given a module title or page number.iiÿÿÿÿRNit_history(ReR!R"R#tSystemErrorttitleToPageNumR	R RR$RRRt	ModuleSetRR­R(tappendRthasattrR;RLR¬(R
tmoduleTitleRtoldFrametoldPaget
newControl((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR(TsD
,					
cCs2|iƒ|iiƒ|iiƒtiƒdS(smGiven an interface that has had all its UI components loaded and
           initialized, run the interface.  Because this method must call into
           the UI toolkit to handle events and such, it is assumed that this
           method does not exit until the UI is unloaded.  From this point on,
           all interaction must take place in callbacks.
        N(R¬RvtpresentR%t
grab_focusRtmain(R
((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyRkžs


cCsBti|itiƒp6yti|iƒWqOtitdƒƒdSXnti	i
ti	itd|i
|iƒ}|iti	iƒti	iƒdddd|i
|iƒ|pdSxPtoHd|i}tid|i|ftiƒpPn|id7_qÂW|id|i|fdƒ|id7_dS(	sTake a screenshot.s.Unable to create the screenshot dir; skipping.Niisscreenshot-%04d.pngs%s/%sitpng(RARBRtR_OKtmkdirR!R"R#RRtPixbuftCOLORSPACE_RGBRVRRtget_from_drawabletget_default_root_windowtcolormap_get_systemRcRtsave(R
t
screenshottsname((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR4ªs*	
#cCs’|djodSd}xstoky'||i|joPn|d7}Wqtj
o1titdƒ|ƒttdƒ|‚qXqW|S(sòLookup the given title in the given module list.  Returns the page
           number on success.  This only works on the given moduleList, so 
           for a ModuleSet it would only find the page if it exists in the
           set.
        iis#No module exists with the title %s.N(ReRcR“t
IndexErrorR!R"R#R®(R
R³R	R((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR¯Æs
N(RR
RVRRtpropertyR	R*R7R9R;RLRZR8R^RŽR–R¤R_R¬ReR(RkR4R¯(((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyR%s*											L				J		(((RR!RAtfirstboot.configtfirstboot.constantstfirstboot.functionstfirstboot.modulesetRR#RR(((s7/usr/lib/python2.6/site-packages/firstboot/interface.pyt<module>s



	

Youez - 2016 - github.com/yon3zu
LinuXploit