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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/fab.pyo
Ñò
lïJc@s`dZdZdZdZddkZddkZddkZddkTddkl	Z	l
Z
lZdeifd	„ƒYZ
eieeeeeeefeefƒZeieiƒeid
eƒ\ZZZZZZedjo-e	iƒoe i!deƒeZnn*e	i"ƒoe i!d
eƒeZneejoxedjo£e i#dƒyddk$Tddk%l&Z&Wn-e'j
o!e i!dƒe(i)dƒnXeZ*eZ+e,e(i-ƒZ*eejoSe.i/dddƒZei0ƒdjo'e1e2i3ƒƒZe i4deƒnnei0ƒdjoÔdZ5y.ei6dƒ\Z7Z8di9e7e5gƒZWn.e:j
o"eZ7di9ee5gƒZnXe i4deƒe;eƒZ<de7Z=e i4de=ƒe<i>e=e?i@ƒZAeAoe*iBe<ƒndZnedjoe i4dƒnge i4deƒeCiDeCeƒƒee?_3y e3iEe3iFe3iGeƒƒWne3iHj
onXe&ƒZ+e+iIƒe*iJe+ƒye i4dƒe*iKƒWneLj
onXe(i)dƒnÅy$dd kMl,Z,dd!kNlOZOWn-e'j
o!e i!d"ƒe(i)dƒnXe i#d#ƒe,e(i-ƒZ*eOeƒZPePiIƒye i4dƒe*iQƒWn eLj
oe(i)dƒnXn™ydd$kRlRZRWn-e'j
o!e i!d%ƒe(i)dƒnXe
ƒZSyeSiTƒWn eLj
oe i!d&ƒnXe iUd'ƒe iUd(ƒdS()s6.0sFax Address Bookshp-fabs$A simple fax address book for HPLIP.iÿÿÿÿN(t*(tutilsttuitmoduletConsolecBs7eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
eed„Zeed
„Zd„ZeZd„Zd„Zd„ZeZd„ZeZd„ZeZd„ZeZd„Zd„ZeZ d„Z!e!Z"d„Z#e#Z$d„Z%d„Z&RS(cCs>tii|ƒd|_tiƒ|_tidƒ|_	dS(NsBType 'help' for a list of commands. Type 'exit' or 'quit' to quit.s	hp-fab > (
tcmdtCmdt__init__tintrotfaxtFaxAddressBooktdbtlogtboldtprompt(tself((s/usr/share/hplip/fab.pyR.s	cCs|iGHdS(s/Print a list of commands that have been enteredN(t_hist(Rtargs((s/usr/share/hplip/fab.pytdo_hist5scCsdS(sExits from the consoleiÿÿÿÿ((RR((s/usr/share/hplip/fab.pytdo_exit9scCsdS(sExits from the consoleiÿÿÿÿ((RR((s/usr/share/hplip/fab.pytdo_quit=scCs
|i|ƒS(s$Exit on system end of file character(R(RR((s/usr/share/hplip/fab.pytdo_EOFBscCstii||ƒdS(sÃGet help on commands
           'help' or '?' with no arguments prints a list of commands for which help is available
           'help <command>' or '? <command>' gives help on <command>
        N(RRtdo_help(RR((s/usr/share/hplip/fab.pyRFscCs<tii|ƒg|_h|_h|_|idƒdS(sInitialization before prompting user for commands.
           Despite the claims in the Cmd documentaion, Cmd.preloop() is not a stub.
        tN(RRtpreloopRt_localst_globalstdo_list(R((s/usr/share/hplip/fab.pyROs
			cCstii|ƒdGHdS(sƒTake care of any unfinished business.
           Despite the claims in the Cmd documentaion, Cmd.postloop() is not a stub.
        s
Exiting...N(RRtpostloop(R((s/usr/share/hplip/fab.pyRZscCs|i|iƒg7_|S(sá This method is called after the line has been input but before
            it has been interpreted. If you want to modifdy the input line
            before execution (for example, variable substitution) do it here.
        (Rtstrip(Rtline((s/usr/share/hplip/fab.pytprecmdascCs|S(s™If you want to stop the console, return something that evaluates to true.
           If you want to do some post command processing, do it here.
        ((RtstopR((s/usr/share/hplip/fab.pytpostcmdiscCsdS(sDo nothing on empty input lineN((R((s/usr/share/hplip/fab.pyt	emptylineoscCstidƒdS(Ns2Unrecognized command. Use 'help' to list commands.(Rterror(RR((s/usr/share/hplip/fab.pytdefaultsscCs|pxqtoø|ottidƒƒiƒ}nttidƒƒiƒ}|iƒdjotidƒGHdS|p |odStidƒq
n|o1|ii	|ƒdj	otidƒq
qn.|ii	|ƒdjotidƒq
nPq
Wnn|iƒ}|o/|ii	|ƒdj	otidƒdSn,|ii	|ƒdjotidƒdS|S(	Ns?Enter the name to add to the group (<enter>=done*, c=cancel) ? sEnter name (c=cancel) ? tctCanceledRsName must not be blank.s4Name already exists. Please choose a different name.s.Name not found. Please enter a different name.(tTruet	raw_inputRR
RtlowertredR#RtgettNone(RRt
fail_if_matchtalt_texttnickname((s/usr/share/hplip/fab.pytget_nicknamevs>




	
cCsu|iiƒ}|pxXto÷|ottidƒƒiƒ}nttidƒƒiƒ}|iƒdjotidƒGHdS|p |odSti	dƒqn|djo
dGHdS|o%||joti	d	ƒqqn"||joti	d
ƒqnPqWnV|iƒ}|o#||joti	d	ƒdSn ||joti	d
ƒdS|S(Ns4Enter the group to join (<enter>=done*, c=cancel) ? sEnter the group (c=cancel) ? R%R&Rs!The group name must not be blank.tAlls<Cannot specify group 'All'. Please choose a different group.s6Group already exists. Please choose a different group.s0Group not found. Please enter a different group.(
Rtget_all_groupsR'R(RR
RR)R*R#(RRR-R.t
all_groupst	groupname((s/usr/share/hplip/fab.pyt
get_groupname¦sF








	

cCsƒ|o^|iƒiƒd}|idƒo|idƒdS|idƒo|idƒdSn|idƒ|idƒdS(sl
        List names and/or groups.
        list [names|groups|all|]
        dir [names|groups|all|]
        itnamRNtgro(Rtsplitt
startswithtdo_namest	do_groups(RRtscope((s/usr/share/hplip/fab.pyRÛs

	
cCsÉ|iiƒ}ti|ƒtidƒGHt|ƒdjo‚tiƒ}d|_x\|i	ƒD]N\}}|i
dƒp2|i||d|d	d
i|dƒfƒq_q_W|i
ƒndGHHd
S(s+
        List names.
        names
        s
Names:
itNames
Fax NumbertNotessMember of Group(s)t__R	tnotess, tgroupss(None)N(R=s
Fax NumberR>sMember of Group(s)(Rtget_all_recordsRtdebugR
tlenRt	FormattertheadertitemsR9taddtjointoutput(RRtall_entriestftnamete((s/usr/share/hplip/fab.pyR:òs
	
6cCsÌ|iiƒ}ti|ƒtidƒGHt|ƒo‹tiƒ}d|_xe|D]]}|i	|di
g}|ii|ƒD]!}|idƒp||qq~ƒfƒqSW|i
ƒndGHHdS(	s-
        List groups.
        groups
        s	
Groups:
tGrouptMemberss, R?s(None)N(RORP(RR2RRCR
RDRRERFRHRIt
group_membersR9RJ(RRR3RLtgroupt_[1]tx((s/usr/share/hplip/fab.pyR;
s

	[c
Csj|i|dtƒ}|pdS|ii|ƒ}ti|ƒtid|ƒGHd}d}d}|d}xÎtoÆttid|ƒƒi	ƒ}|i
ƒdjotidƒGHdS|o|otid	ƒqqn|p
|}nt}	x3|D]+}
|
d
jotidƒt}	PqÿqÿW|	oPqqqqW|d}ttid
|ƒƒi	ƒ}|i
ƒdjotidƒGHdS|p
|}n|do	dGHng}
xw|dD]k}|djoqÄnt
id|ddƒ\}	}|	ptidƒGHdS|o|
i|ƒqÄqÄWdGHxûtoó|iddtdtƒ}|i
ƒdjotidƒGHdS|pPn|iiƒ}||joTtidƒt
idddƒ\}	}|	ptidƒGHdS|pq;qÿn||djotidƒq;n|
i|ƒq;W|ii||||||
|ƒ|i|ƒHdS(sI
        Edit an name.
        edit [name]
        modify [name]
        R-Ns!
Edit/modify information for %s:
RR	s&Fax Number (<enter>='%s', c=cancel) ? R%R&sFax number must not be empty.s0123456789-(+) *#sOInvalid characters in fax number. Fax number may only contain '0123456789-(+) 'R@s!Notes (<enter>='%s', c=cancel) ? RAs
Leave or Stay in a Group:
R1sStay in group %s t
choice_prompts*(y=yes* (stay), n=no (leave), c=cancel) ? s
Join New Group(s):
R.sGroup not found.sIs this a new groups!(y=yes* (new), n=no, c=cancel) ? sTGroup already specified. Choose a different group name or press <enter> to continue.(R0tFalseRR+RRCR
R'R(RR)R*R#Rtenter_yes_notappendR5R2twarntsettdo_show(RRR/RNtlastnamet	firstnamettitletsave_faxnumtfaxnumtokR%t
save_notesR@t
new_groupstgtanst	add_groupR3((s/usr/share/hplip/fab.pytdo_edit!sš
 




	


	



"
c	CsC|i|dtƒ}|pdS|ii|ƒ}g}dGHxv|D]n}|idƒp#tid|ddƒ\}}nqE|ptidƒGHdS|o|i	|ƒqEqEWd	GHxlt
od|id
dtdt
ƒ}|iƒdjotidƒGHdS|iƒpPn|i	|ƒq¿W|ii
||ƒHdS(
sQ
        Edit a group.
        editgrp [group]
        modifygrp [group]
        R-Ns
Existing Names in Group:
R?sShould '%s' stay in this group RUs*(y=yes* (stay), n=no (leave), c=cancel) ? R&s
Add New Names to Group:
RR.R%(R5RVRRQR9RRWRR*RXR'R0R)t
update_groups(	RRRRtold_entriestnew_entriesRNRaReR/((s/usr/share/hplip/fab.pyt
do_editgrp®s:
cCsÄ|i|dtƒ}|pdStid|ƒGHd}d}d}x°to¨ttidƒƒiƒ}|iƒdjotidƒGHdS|ptidƒqHnt}x3|D]+}|d	jotid
ƒt	}Pq¸q¸W|oPqHqHWttidƒƒiƒ}	|	iƒiƒdjotidƒGHdSg}
|i
iƒ}x-to%ttidƒƒiƒ}|iƒdjotidƒGHdS|pPn|d
jotidƒGHqWn||jowtidƒxOtoGttidƒƒiƒiƒ}
|
djotidƒqênPqêW|
djoqWqQn||
jotidƒqWn|
i
|ƒqWW|
i
d
ƒ|i
i||||||
|	ƒ|i|ƒdS(sD
        Add an name.
        add [name]
        new [name]
        R-Ns
Enter information for %s:
RsFax Number (c=cancel) ? R%R&sFax number must not be empty.s0123456789-(+) *#sQInvalid characters in fax number. Fax number may only contain '0123456789-(+) *#'sNotes (c=cancel) ? s,Member of group (<enter>=done*, c=cancel) ? R1sCannot specify 'All'.sGroup not found.s%Is this a new group (y=yes*, n=no) ? tntys1Please enter 'y', 'n' or press <enter> for 'yes'.sTGroup already specified. Choose a different group name or press <enter> to continue.(RRlRm(R0R'RR
R(RR)R*R#RVRR2RYRXRZR[(RRR/R^R]R\R`RaR%R@RAR3Rft
user_input((s/usr/share/hplip/fab.pytdo_addàsx


	



!





"cCs®|i|dtƒ}|pdSg}xltod|iddtdtƒ}|iƒdjotidƒGHdS|iƒpPn|i|ƒq*W|ii	||ƒHdS(sL
        Add a group.
        addgrp [group]
        newgrp [group]
        R-NRR.R%R&(
R5R'R0RVR)RR*RXRRh(RRRRtentriesR/((s/usr/share/hplip/fab.pyt	do_addgrpJs
cCsÄ|iiƒ}ti|ƒtidƒGHt|ƒdjo‚tiƒ}d
|_x\|i	ƒD]N\}}|i
dƒp2|i||d|d	d
i|dƒfƒq_q_W|i
ƒnHdS(s2
        View all name data.
        view
        s
View all Data:
iR=tFaxR>sMember of Group(s)R?R	R@s, RAN(sNameRrsNotessMember of Group(s)(RRBRRCR
RDRRERFRGR9RHRIRJ(RRRKRLRMRN((s/usr/share/hplip/fab.pytdo_viewgs
	
6cCsÐ|i|dtƒ}|pdS|ii|ƒ}|o„tiƒ}d|_|id|fƒ|id|dfƒ|id|d	fƒ|id
di|dƒfƒ|i	ƒnt
id
ƒHdS(sW
        Show a name (all details).
        show [name]
        details [name]
        R-NtKeytValuesName:sFax Number:R	sNotes:R@sMember of Group(s):s, RAs:Name not found. Use the 'names' command to view all names.(RtRu(R0RVRR+RRERFRHRIRJRR#(RRRMRNRL((s/usr/share/hplip/fab.pyR[s	 
cCs6|i|dtƒ}|pdS|ii|ƒHdS(sE
        Remove a name.
        rm [name]
        del [name]
        R-N(R0RVRtdelete(RRR/((s/usr/share/hplip/fab.pytdo_rms
cCs6|i|dtƒ}|pdS|ii|ƒHdS(sN
        Remove a group.
        rmgrp [group]
        delgrp [group]
        R-N(R5RVRtdelete_group(RRRR((s/usr/share/hplip/fab.pytdo_rmgrp¬s
cCstittƒdS(s
About fab.N(Rt	log_titlet	__title__t__version__(RR((s/usr/share/hplip/fab.pytdo_about¼scCsÒ|iƒiƒ}|ptidƒdS|d}t|ƒdjo|diƒ}nd}|djotid	|ƒdStii|ƒptid
|ƒdS|djo‰tii	|ƒdiƒ}|djo
d}qD|djo
d}qDt
|d
ƒidƒiƒ}d|jo
d}qDd}n|djo%d|GH|ii
|ƒ\}}n3|djo%d|GH|ii|ƒ\}}n|pti|ƒn|idƒHdS(s]
        Import LDIF
        import <filename> [type]
        [type] = vcf|ldif|auto
        s+You must specify a filename to import from.NiitautotldiftvcftvcardsInvalid type: %ssFile %s not found.s.vcfs.ldiftrisbegin:vcardsImporting from LDIF file %s...sImporting from VCF file %s...R(R~RR€R(RR€(RR8RR#RDR)tostpathtexiststsplitexttfiletreadRtimport_ldiftimport_vcardR(RRtfilenamettyptexttheadRat	error_str((s/usr/share/hplip/fab.pyt	do_importÀsD











	
	
('t__name__t
__module__RRRRRRRRRR!R"R$R'RVR0R5Rtdo_dirR:R;Rgt	do_modifyRktdo_modifygrpRotdo_newRqt	do_newgrpRsR[t
do_detailsRwtdo_delRyt	do_delgrpR}R(((s/usr/share/hplip/fab.pyR,sF													05				Š	/	g				
	
	thandle_device_printertqt3sU%s GUI mode requires GUI support (try running with --qt4). Entering interactive mode.sU%s GUI mode requires GUI support (try running with --qt3). Entering interactive mode.shp-fab(qt3)(tFaxAddrBookForms,Unable to load Qt3 support. Is it installed?ituitloctsystemsUsing system locale: %sR%tutf8t.s&Trying to load .qm file for %s locale.shplip_%s.qmsName of .qm file: %ssUsing default 'C' localesUsing locale: %ssStarting GUI loop...i(tQApplication(t	FABWindows,Unable to load Qt4 support. Is it installed?shp-fab(qt4)(R	s1Fax address book disabled - Python 2.3+ required.s
User exit.RsDone.(VR|R{t__mod__t__doc__RtgetoptRƒtbase.gtbaseRRRRRtModuleR,tGUI_MODEtINTERACTIVE_MODEtUI_TOOLKIT_QT3tUI_TOOLKIT_QT4tmodtsetUsagetUSAGE_FLAG_NONEtparseStdOptsRVtoptst
device_uritprinter_nametmodet
ui_toolkitRŸtcanEnterGUIModeRR#tcanEnterGUIMode4t
set_moduletqttui.faxaddrbookformRtImportErrortsystexittapptaddrbookR£targvt	user_confR+R)tstrt
QTextCodectlocaleRCRNR8tlRTRIt
ValueErrortQTranslatorttranstqm_filetloadtproptlocalization_dirtloadedtinstallTranslatortQLocalet
setDefaultt	setlocaletLC_ALLt	normalizetErrortshowt
setMainWidgett	exec_looptKeyboardInterrupttPyQt4.QtGuit
ui4.fabwindowR¤tfabtexec_R	tconsoletcmdlooptinfo(((s/usr/share/hplip/fab.pyt<module>sÊ
	ÿÿÐ	$










	 	







	


Youez - 2016 - github.com/yon3zu
LinuXploit