KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/site-packages/dbus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/site-packages/dbus/_dbus.pyc
mò
¼Á»Dc@s¥dZdkZdkZdkZdkTdkTdkTdefd„ƒYZdefd„ƒYZ	defd„ƒYZ
d	efd
„ƒYZdfd„ƒYZdS(
sçModule for high-level communication over the FreeDesktop.org Bus (DBus)

DBus allows you to share and access remote objects between processes
running on the desktop, and also to access system services (such as
the print spool).

To use DBus, first get a Bus object, which provides a connection to one
of a few standard dbus-daemon instances that might be running. From the
Bus you can get a RemoteService. A service is provided by an application or
process connected to the Bus, and represents a set of objects. Once you
have a RemoteService you can get a RemoteObject that implements a specific interface
(an interface is just a standard group of member functions). Then you can call
those member functions directly.

You can think of a complete method call as looking something like:

Bus:SESSION -> Service:org.gnome.Evolution -> Object:/org/gnome/Evolution/Inbox -> Interface: org.gnome.Evolution.MailFolder -> Method: Forward('message1', 'seth@gnome.org')

This communicates over the SESSION Bus to the org.gnome.Evolution process to call the
Forward method of the /org/gnome/Evolution/Inbox object (which provides the
org.gnome.Evolution.MailFolder interface) with two string arguments.

For example, the dbus-daemon itself provides a service and some objects:

# Get a connection to the desktop-wide SESSION bus
bus = dbus.Bus(dbus.Bus.TYPE_SESSION)

# Get the service provided by the dbus-daemon named org.freedesktop.DBus
dbus_service = bus.get_service('org.freedesktop.DBus')

# Get a reference to the desktop bus' standard object, denoted
# by the path /org/freedesktop/DBus. The object /org/freedesktop/DBus
# implements the 'org.freedesktop.DBus' interface
dbus_object = dbus_service.get_object('/org/freedesktop/DBus',
                                       'org.freedesktop.DBus')

# One of the member functions in the org.freedesktop.DBus interface
# is ListServices(), which provides a list of all the other services
# registered on this bus. Call it, and print the list.
print(dbus_object.ListServices())
N(t*tBuscBs(tZdZeiZeiZeiZ	e
ZeiZ
eiZeiƒZeeed„Zd„Zd„Zd„Zed„ZeeƒZed„ZeeƒZed„ZeeƒZd„Zd	„Zeeeed
„Z eeeed„Z!d„Z"d
„Z#d„Z$d„Z%e%Z&RS(svA connection to a DBus daemon.

    One of three possible standard buses, the SESSION, SYSTEM,
    or STARTER bus
    cCs.|o||ijo|i|Sn||ijo
t}nE||ijo
t}n+||i	jo
t
}ntd|ƒ‚ti
|ƒ}||_tiƒ|_tƒ|_ti||ƒ|_|ii|iƒ|o+ttddƒ}|o||ƒqn|p||i|<n|S(Nsinvalid bus_type %st_dbus_mainloop_setup_function(tprivatetbus_typetclst_shared_instancestTYPE_SESSIONt
SessionBustsubclasstTYPE_SYSTEMt	SystemBustTYPE_STARTERt
StarterBust
ValueErrortobjectt__new__tbust	_bus_typetweakreftWeakValueDictionaryt
_bus_namestSignalMatchTreet_match_rule_treet
dbus_bindingstbus_gett_connectiont
add_filtert_signal_functuse_default_mainlooptgetattrtdbustNonetfunc(RRRRRR	R!((t0/usr/lib64/python2.4/site-packages/dbus/_dbus.pyRHs,


	cOsdS(N((tselftargstkeywords((R"t__init__pscCs|iiƒdS(N(R#Rtclose(R#((R"R'uscCs|iS(N(R#R(R#((R"tget_connectionxscCs
td|ƒS(s*Static method that returns the session busRN(RR(R((R"tget_session{scCs
td|ƒS(s)Static method that returns the system busRN(RR(R((R"t
get_systemscCs
td|ƒS(s*Static method that returns the starter busRN(R
R(R((R"tget_starterˆscCs|i|||ƒS(s'Get a proxy object to call over the busN(R#tProxyObjectClasst
named_servicetobject_path(R#R-R.((R"t
get_objectscCs·d}xª|iƒD]œ\}}|idƒo_y5|d}t|ƒ}|p
h}n|||<Wq¯t
j
otd|ƒ‚q¯Xq|djoqtd|ƒ‚qW|S(NtargisInvalid arg index %stsender_keywordtpath_keywordsUnknown keyword %s(R1R2(R t	args_dictR%t	iteritemstkeytvaluet
startswithtsnumtinttnumRt	TypeError(R#R%R3R6R:R5R8((R"t_create_args_dict“s 



cKsÿ|i|ƒ}|o<|ddjo+|iddƒ}|i|ddƒ}nt||||ƒ}
xCdD];}	|	|jot|
|	||	ƒqnt|
|	dƒqnW|o|
i|ƒn|
i|ƒ|ii|
ƒti|it|
ƒƒdS(	Nit:sorg.freedesktop.DBuss/org/freedesktop/DBustdbus_interfaceR1R2(ssender_keywordspath_keyword(R#R<R%R3R-R/t
bus_objecttGetNameOwnertSignalMatchRuletsignal_nameR>tpatht
match_ruletkwtsetattrR tadd_args_matchtadd_handlerthandler_functionRtaddRt
bus_add_matchRtrepr(R#RIRBR>R-RCR%R3R?RERD((R"tadd_signal_receiver¨s

c
Ks«|i|ƒ}|o<|ddjo+|iddƒ}|i|ddƒ}nt||||ƒ}	|o|	i
|ƒn|o|	i|ƒn|ii|	ƒdS(NiR=sorg.freedesktop.DBuss/org/freedesktop/DBusR>(R#R<R%R3R-R/R?R@RARBR>RCRDRGRIRHRtremove(
R#RIRBR>R-RCR%R3R?RD((R"tremove_signal_receiverÆscCsti|i|ƒS(s9Get the unix user for the given named_service on this BusN(Rtbus_get_unix_userR#RR-(R#R-((R"t
get_unix_userßscCs}|iƒtijotiSn|iƒ}|iƒ}|i	ƒ}|iƒ}t
||||ƒ}|ii||ƒdS(N(tmessagetget_typeRtMESSAGE_TYPE_SIGNALtHANDLER_RESULT_NOT_YET_HANDLEDt
get_interfaceR>t
get_senderR-tget_pathRCt
get_memberRBRARDR#Rtexec_matches(R#t
connectionRRR>RBRDRCR-((R"RãscCsti|i|ƒS(N(Rtbus_start_service_by_nameR#RR-(R#R-((R"tstart_service_by_nameðscCs||i|ijo
d}nL|i|ijo
d}n/|i|ijo
d}ntp
td‚d|t|ƒfS(NtSESSIONtSYSTEMtSTARTERs%Unable to represent unknown bus type.s<dbus.Bus on %s at %#x>(	R#RRtnameR
RtFalsetAssertionErrortid(R#Ra((R"t__repr__ós


('t__name__t
__module__t__doc__RtBUS_SESSIONRt
BUS_SYSTEMR
tBUS_STARTERRtProxyObjectR,tDBUS_START_REPLY_SUCCESStSTART_REPLY_SUCCESSt DBUS_START_REPLY_ALREADY_RUNNINGtSTART_REPLY_ALREADY_RUNNINGRRRtTrueRbRR&R'R(R)tstaticmethodR*R+R/R<R RMRORQRR]Ret__str__(((R"R4s8					(							
		RcBstZdZeed„ZRS(s The system-wide message bus
    cCsti|ti||ƒS(N(RRRR
RR(RRR((R"Rs(RfRgRhRqRbR(((R"RsRcBstZdZeed„ZRS(s,The session (current login) message bus
    cCsti|ti||ƒS(N(RRRRRR(RRR((R"R	s(RfRgRhRqRbR(((R"RsR
cBstZdZeed„ZRS(s^The bus that activated this process (if
    this process was launched by DBus activation)
    cCsti|ti||ƒS(N(RRRRRR(RRR((R"Rs(RfRgRhRqRbR(((R"R
st	InterfacecBs;tZdZd„Zed„Zd„Zd„ZeZRS(sAn interface into a remote object

    An Interface can be used to wrap ProxyObjects
    so that calls can be routed to their correct
    dbus interface
    cCs||_||_dS(N(RR#t_objR>t_dbus_interface(R#RR>((R"R&s	cKs1|p
|i}n|ii||||dS(N(R>R#RvRutconnect_to_signalRBRIR%(R#RBRIR>R%((R"Rws
cKs_|idƒo|d}n
|i}|djotiSn|ii|d|ƒ}|SdS(NR>t__call__(
R%thas_keyRvR#tmemberRRxRut__getattr__tret(R#RzR%R|Rv((R"R{%s	
cCsd|i|it|ƒfS(Ns%<Interface %r implementing %r at %#x>(R#RuRvRd(R#((R"Re1s(	RfRgRhR&R RwR{ReRs(((R"Rts			(
RhRRRtproxiest
exceptionst
matchrulesRRRRR
Rt(RRRRR
RRtR((R"t?*s			Ì

Anon7 - 2021