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/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/dbusserver.pyc
z#Jc@sdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
hZhZdei
ifd	YZdad
ZdZdS(sAExposes Orca as a DBus service for testing and watchdog purposes.s$Id$s
$Revision$s$Date$s(Copyright (c) 2008 Sun Microsystems Inc.tLGPLiNtServercBseZdZeiidddddddZeiiddddddd	Zeiiddddddd
ZeiidddddddZ	RS(cCs tiii|d||dS(N(tdbustservicetObjectt__init__tNone(tselftobject_pathtbus_name((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pyR-stdbus_interfacesorg.gnome.Orca.Loggingtin_signaturetsit
out_signaturetcCstipdStitid||ftiotiidt_n|o*t|ot	d|ddt_n|t_
dS(s1Sets the file to send detailed debug information.NsDBus Logging.setDebug(%s, %d)s%s.debugtwi(tsettingstenableRemoteLoggingtdebugtprintlntLEVEL_FINESTt	debugFiletcloseRtlentopent
debugLevel(RRR((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pytsetDebug0s



tsc	CstipdSddk}titid|xddgD]}|i|}|id}y1t|i	t|i
|it|WnnX|oSt|oF|i
d||fdt|<t|i||it|n|i|iq?WdS(	s=Sets the file to send speech and braille logging information.NisDBus Logging.setLogFile(%s)tbrailletspeechs%(message)ss%s.%sR(RRtloggingRRRt	getLoggert	FormattertloggingFileHandlerstflushRt
removeHandlerRtFileHandlertsetFormattert
addHandlertsetLeveltINFO(RtlogFileRtloggertlogt	formatter((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pyt
setLogFile@s*

c	CstipdStitidddk}ddk}xddgD]}|i|}y5t|\}}|i	|i
||i	WnnX|id}|i}|i|}|i
||i|||gt|<|i|iqGWdS(s6Tells Orca to start logging speech and braille output.NsDBus Logging.startRecordingiRRs%(message)s(RRRRRRtStringIORtloggingStreamHandlersRR#R t
StreamHandlerR%R&R'R((RRR.R*R+tstringIOthandlerR,((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pytstartRecordingYs,





cCstipdStitidddk}ddk}d}xddgD]}|i|}yOt|\}}|i	|i
|i|||i7}|i
Wnti
tinX|i}qMW|S(sTells Orca to stop logging speech and braille output and
        to return whatever was recorded since the last call to
        startRecording.RsDBus Logging.stopRecordingiNRR(RRRRRRR.RR/R"RR#tgetvaluetprintExceptiont	LEVEL_OFF(RRR.tresultR*R+R1R2((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pyt
stopRecordingss(




(
t__name__t
__module__RRRtmethodRR-R3R8(((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pyR+s	cCsztodSyMtiiidtti}tiidd|}t	d|aWnt
it
idnXdS(s^Sets up the Orca DBus service.  This will only take effect once
    the Orca main loop starts.Ntset_as_defaultsorg.gnome.Orcatbust/s/dbusserver.py: Could not initialize DBus server(
tobjRtmainlooptglibt
DBusGMainLooptTruet
SessionBusRtBusNameRRRt
LEVEL_WARNING(R=tname((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pytinitscCsdS(N((((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pytshutdowns(t__doc__t__id__t__version__t__date__t
__copyright__t__license__Rtdbus.servicetdbus.mainloop.glibRRR!R/RRRRR?RHRI(((s3/usr/lib/python2.6/site-packages/orca/dbusserver.pyt<module>s b	

Youez - 2016 - github.com/yon3zu
LinuXploit