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/hplip/base/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/base/tui.pyo
Ñò
lïJc@s-ddkZddkZddkTddkZddkZddd„Zdd„Zdd„Zd„Z	d„Z
d	„Zd
„Zd„Z
dd
„Zdd„Zd„Zdefd„ƒYZdefd„ƒYZdZdZdZded„Zded„Zd„Zed„Zd„ZdS(iÿÿÿÿN(t*tycCs,t|ƒtdƒjo!|djo
t}q:t}n|djo#|o|d7}qt|d7}n||7}x±to©y%tti|ƒƒiƒiƒ}Wnt	j
o
qwnX|pt|fS|djottfS|djottfS|d	jot|fSti
dƒqwWdS(
NtRs (y=yes*, n=no, q=quit) ? s (y=yes, n=no*, q=quit) ? tntqtcs/Please press <enter> or enter 'y', 'n', or 'q'.(RR(ttypetTruetFalsetNonet	raw_inputtlogtboldtlowertstriptEOFErrorterror(tquestiont
default_valuet
choice_promptt
user_input((s/usr/share/hplip/base/tui.pytenter_yes_no s0




%


c
Csxtoüy%tti|ƒƒiƒiƒ}Wntj
o
qnX|p|dj	ot|fSn|djot|fSyt	|ƒ}Wn-t
j
o!tid||fƒqnX||jp
||jotid||fƒqnt|fSWdS(NRs8Please enter a number between %d and %d, or "q" to quit.(RR
RRR
RRR	Rtintt
ValueErrorR(Rt	min_valuet	max_valueRRt	value_int((s/usr/share/hplip/base/tui.pytenter_rangeFs,%

		cCs d|jo|idƒnxûtoóy%tti|ƒƒiƒiƒ}Wntj
o
q!nX|o|p
||jo&|djot|fSt|fSn|djot|fS||jot|fSti	ddi
g}|D]}|d|qò~ƒ|fƒq!WdS(NRs9Please enter %s or press <enter> for the default of '%s'.s, s'%s'(tappendRR
RRR
RRRRtjoin(RtchoicesRRt_[1]tx((s/usr/share/hplip/base/tui.pytenter_choicecs$
%


	cCsTtidƒtidƒtiti|ƒƒtitidt|ƒƒƒdS(NRt-(RtinfoRtlen(ttext((s/usr/share/hplip/base/tui.pyttitles

cCsit|ƒ}tidƒtid|dƒtid|dƒtid|dƒtidƒdS(NRR"is| s |(R$RR#(R%R((s/usr/share/hplip/base/tui.pytheader†s
cCs
tdƒS(NsAA page will be printed.
Please load plain paper into the printer.(tcontinue_prompt(((s/usr/share/hplip/base/tui.pytload_paper_promptscCs
tdƒS(NszLoad the alignment page on the scanner bed and push the 'Scan' or 'Enter' button on the printer to complete the alignment.(R((((s/usr/share/hplip/base/tui.pytload_scanner_for_align_prompt“scCs
tdƒS(NsVA page will be printed.
Please load HP Advanced Photo Paper - Glossy into the printer.(R((((s/usr/share/hplip/base/tui.pytload_photo_paper_prompt–sRcCs€xytoqy)tti|dƒƒiƒiƒ}Wntj
o
qnX|ptS|djotStidƒqWdS(Ns+ Press <enter> to continue or 'q' to quit: Rs*Please press <enter> or enter 'q' to quit.(	RR
RRR
RRRR(tpromptR ((s/usr/share/hplip/base/tui.pyR(šs)
cCs½ti|ƒ}x§toŸytti|ƒƒ}Wntj
o
qnX|o|dj	o||fS|djot|fS|i	|ƒ}|pti
dƒqnt|fSWdS(NRs,Incorrect input. Please enter correct input.(tretcompileRR
RRRR	RtsearchR(tregexR,tpatternRtre_objR tmatch((s/usr/share/hplip/base/tui.pytenter_regexªs 

c
Cs×y¼ddk}|idƒiƒd}hdd6dd6}x^|idƒD]M}|iƒ}t|ƒdjo(|d||d<|d||d<qLqLWt|dƒt|dƒfSWntj
odSXdS(Niÿÿÿÿsstty -aitrowstcolumnst;iii(i@(i(i@(tcommandst	getoutputt
splitlinesR	tsplitR$Rt	TypeError(R8tln1tvalstphR ((s/usr/share/hplip/base/tui.pytttysizeÁs"t
ProgressMetercBs eZdd„Zdd„ZRS(s	Progress:cCs\d|_||_d|_d|_d|_tƒdt|ƒd|_|idƒdS(Nis	\|/-\|/-*ii(	tprogressR,tprev_lengthtspinnertspinner_posR@R$tmax_sizetupdate(tselfR,((s/usr/share/hplip/base/tui.pyt__init__Ñs					RcCsú||_|i|id}||ijo
|i}n|idjod|_d|_ntiid|iƒd|id|d|i|id|i||i|f}tii|ƒtii	ƒt
|ƒ|_|idd|_dS(Nidiss%s [%s%s%s] %d%%  %s   Rit (RBRFREtsyststdouttwriteRCR,RDtflushR$(RHRBtmsgR R((s/usr/share/hplip/base/tui.pyRGÚs	
	

(t__name__t
__module__RIRG(((s/usr/share/hplip/base/tui.pyRAÐs	t	FormattercBs/eZddddd„Zd„Zd„ZRS(icCs1||_||_g|_||_||_dS(N(tmarginR'R5t
max_widthst
min_widths(RHRSR'RURT((s/usr/share/hplip/base/tui.pyRIós
				cCs|ii|ƒdS(N(R5R(RHtrow_data((s/usr/share/hplip/base/tui.pytaddûscCs©|ioŽt|idƒ}x:|iD]/}t|ƒ|jotid|ƒdSq'Wt|iƒ|jotidƒng}xY|iD]N}|idƒ}d}x#|D]}t|t|ƒƒ}q³W|i|ƒq‘Wg}x]t|iƒD]L\}}d}x*|iD]}t|t||ƒƒ}qW|i|ƒqùWd}	|i
djoPtƒd}	d|	|d}
g|_
xL|iD]}|i
i|
ƒq‘Wn(t|i
ƒ|jotidƒn|idjoa|	djotƒd}	nd	|	|d}g|_xL|iD]}|ii|ƒq)Wn(t|iƒ|jotid
ƒng}g}
x{t
|i||i
|ƒD]^\}}}}tt||ƒt||ƒƒ}|i|ƒ|
ih|d6|id6ƒq–Wtit|
ƒƒ}ti|i|iƒƒg}x|D]}|id
|ƒq3Wti|it|ƒƒƒx8|iD]}ti|i|ƒƒqtWntidƒdS(Nis"Invalid number of items in row: %ss"Invalid number of items in header.RJiii
s*Invalid number of items in max col widths.is*Invalid number of items in min col widths.twidthRSR"sNo data rows(R5R$RRR'R;tmaxRt	enumerateR	RTR@RUtziptminRStutilst
TextFormatterttupleR#tcompose(RHtnum_colstrtmin_calc_widthsRtheader_partst	max_widthR tmax_calc_widthstmax_screen_widthtdef_maxtdef_mint
col_widthstformatstm1tm2tm3tm4t	col_widtht	formattertsep((s/usr/share/hplip/base/tui.pytoutputÿs‚

	


	

	

!
"
N(RPRQR	RIRWRs(((s/usr/share/hplip/base/tui.pyRRòs	iiiiFcCsl|t|ƒ}|tjo%d|d|d|d|dS|tjo
d||S|d|SdS(NRJi(R$tALIGN_CENTERtALIGN_RIGHT(tlineRXt	alignmenttspace((s/usr/share/hplip/base/tui.pytalignQs


cCsé|djotƒd}ng}|iƒ}y|d|d}}Wntj
o|gSXxf|D]^}dt|ƒ}t|ƒ||jo#|it|||ƒƒ|}qj|d|}qjW|it|||ƒƒ|S(NiiRJ(R	R@R;t
IndexErrorR$RRy(t	paragraphRXRwtresulttwordstcurrenttwordt	increment((s/usr/share/hplip/base/tui.pytformat_paragraph_s"
	
c	Cs.tdƒtiddƒ}d}tddddd
dƒ}d}xst|ƒD]e\}}|||jo+|it|ƒd||fƒ|}qP|it|ƒ||fƒqPW|iƒ|dj	o)t	d
||fd||ƒ\}}nt	d|d|ƒ\}}|o||}n|S(NsSELECT PRINTERt	last_usedtprinter_nameR'tNumsCUPS PrinterRTiidRUiRsA
Enter number 0...%d for printer (q=quit, <enter>=default: *%d) ?is+
Enter number 0...%d for printer (q=quit) ?(R„sCUPS Printer(iid(ii(
R't	user_conftgetR	RRRZRWtstrRsR(	tprinterstlast_used_printer_nametretttablet
default_indexR t_tokti((s/usr/share/hplip/base/tui.pyt
printer_tablexs(

!
!

c	CsÄtdƒtiddƒ}d}|otddddd
dƒ}ntddddd
dƒ}d}h}xÝt|ƒD]Ï\}}|||<||jo_|o!|it|ƒd|fƒn.|it|ƒd|di||ƒfƒ|}q||o|it|ƒ|fƒq||it|ƒ|di||ƒfƒq|W|i	ƒ|dj	o)t
d||fd||ƒ\}	}
nt
d|d|ƒ\}	}
|	o||
}n|S(Ns
SELECT DEVICER‚t
device_uriR'R„sScan device URIRTiidRUis
Device URIsCUPS Printer(s)Rt,s@
Enter number 0...%d for device (q=quit, <enter>=default: %d*) ?is*
Enter number 0...%d for device (q=quit) ?(sNumsScan device URI(iid(ii(sNums
Device URIsCUPS Printer(s)(iidid(iii(R'R…R†R	RRRZRWR‡RRsR(tdevicest	scan_flagtlast_used_device_uriRŠR‹RŒtdevice_indexR tdRŽR((s/usr/share/hplip/base/tui.pytdevice_table–s:



!-
-

c	Csgdhdd6d}}}tiod||<|d7}ntiod||<|d7}nt|ƒdjoètd	ƒtd
dddddƒ}xw|iƒD]i\}}|djo,|it	|ƒd|d|dfƒq¤|it	|ƒ|d|dfƒq¤W|i
ƒtd|d|dƒ\}}|o||dg}qcn
dg}|S(NtusbsUniversal Serial Bus (USB)iitnets:Network/Ethernet/Wireless (direct connection or JetDirect)tparsParallel Port (LPT:)sSELECT CONNECTION (I/O) TYPER'R„sConnection TypetDescriptionRTiiiPRUi
i(Rs@
Enter number 0...%d for connection type (q=quit, enter=usb*) ? (R™sUniversal Serial Bus (USB)(Ršs:Network/Ethernet/Wireless (direct connection or JetDirect)(R›sParallel Port (LPT:)(sNumsConnection TypeRœ(iiiP(ii
i((R	tpropt	net_buildt	par_buildR$R'RRtitemsRWR‡RsR(RŠtiosR R‹tdataRŽtval((s/usr/share/hplip/base/tui.pytconnection_tableÀs.






,(

	(RKR-tgtpexpectR]R	RRR!R&R'R)R*R+R(R4R@tobjectRARRt
ALIGN_LEFTRtRuRyRRRR˜R¤(((s/usr/share/hplip/base/tui.pyt<module>s2
&							"Z	*

Youez - 2016 - github.com/yon3zu
LinuXploit