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 :  /proc/21585/root/usr/lib64/python2.4/site-packages/dbus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/site-packages/dbus/service.pyc
mò
¼Á»Dc@sÏdkZdkZdkZdkZdklZdklZdklZdkl	Z	de
fd„ƒYZd„Zd„Z
d	„Zd
efd„ƒYZde
fd
„ƒYZdefd„ƒYZdS(N(sNameExistsException(sUnknownMethodException(smethod(ssignaltBusNamecBsMtZdZed„Zd„Zd„Zd„Zd„Zd„Z	e	Z
RS(sFA base class for exporting your own Named Services across the Bus
    cCsø|djotiƒ}n||ijo|i|Snti|iƒ|ƒ}|ti
jon_|tijonK|tijot
|ƒ‚n+|tijontd||fƒ‚ti|ƒ}||_||_||i|<|S(Ns3requesting bus name %s returned unexpected value %s(tbustNonet_dbustBustnamet
_bus_namest
dbus_bindingstbus_request_nametget_connectiontretvalt REQUEST_NAME_REPLY_PRIMARY_OWNERtREQUEST_NAME_REPLY_IN_QUEUEtREQUEST_NAME_REPLY_EXISTStNameExistsExceptiont REQUEST_NAME_REPLY_ALREADY_OWNERtRuntimeErrortobjectt__new__tclstbus_namet_bust_name(RRRRR
((t2/usr/lib64/python2.4/site-packages/dbus/service.pyRs&
		
cOsdS(N((tselftargstkeywords((Rt__init__7scCs ti|iiƒ|iƒdS(N(Rtbus_release_nameRRR	R(R((Rt__del__<scCs|iS(sGet the Bus this Service is onN(RR(R((Rtget_bus@scCs|iS(sGet the name of this serviceN(RR(R((Rtget_nameDscCsd|i|it|ƒfS(Ns&<dbus.service.BusName %s on %r at %#x>(RRRtid(R((Rt__repr__Hs(t__name__t
__module__t__doc__RRRRRRR!t__str__(((RRs)					cCsd}d}t}|ox”|iiD]}|o||ijoqd|i|ijoPd|i|ijo9|i|i|jo|}|i|}t
}Pq±qµ|}n|om||ijo]d|i|ijoFd|i|ijo/|i|i|jo|i|}t
}Pq&q&Wn€x||iiD]n}|o||ijo
|}n|o?||ijo/d|i|ijo|i|}t
}Pq>q>W|o|i||fSn2|otd||fƒ‚ntd|ƒ‚dS(sÙWalks the Python MRO of the given class to find the method to invoke.

    Returns two methods, the one to call, and the one it inherits from which
    defines its D-Bus interface name, signature, and attributes.
    t_dbus_is_methodt_dbus_interfaces(%s is not a valid method of interface %ss%s is not a valid methodN(Rt
parent_methodtcandidate_classtFalset
successfultdbus_interfaceRt	__class__t__mro__Rtmethod_namet__dict__R'tTruetUnknownMethodException(RR/R,R+R)R(R((Rt_method_lookupMsB
.

\



.
	c	Gsñti|ƒ}|idtƒ}|ošt|ƒt|ƒjot
d||fƒ‚qàt|ƒt|ƒjot
d||fƒ‚qàxOt||ƒD]\}}|i||ƒqžWnx|D]}|i|ƒqÉW|i|ƒdS(NtappendsFoutput signature %s is longer than the number of values returned by %ssGoutput signature %s is shorter than the number of values returned by %s(RtMethodReturntmessagetreplytget_iterR1titert	signaturetlenR
t	TypeErrorR/tziptvaluetsigt
append_strictR4t
connectiontsend(	RAR6R/R:R
R>R9R?R7((Rt_method_reply_returnscCsŒd|ijo
|i}n>|idjod|ii}nd|i|iif}tiƒ}t
i|||ƒ}|i|ƒdS(Nt_dbus_error_namet__main__sorg.freedesktop.DBus.Python.%ss!org.freedesktop.DBus.Python.%s.%s(t	exceptionR0RDRR#R-R"t	tracebackt
format_exctcontentsRtErrorR6R7RARB(RAR6RFRR7RI((Rt_method_reply_error§s
t
InterfaceTypecBs#tZd„Zd„Zd„ZRS(NcCs t|dhƒ}||_h}	||id|<xy|D]q}|id|i	}t|dtƒoDxA||iƒD]+\}
}|	i|
hƒ}|i|ƒqyWq;q;WxM|iƒD]?}t|dtƒo&|	i|ihƒ}|||i	<q½q½Wtt|ƒi|||ƒdS(Nt_dbus_class_tablet.R'(tgetattrRtclass_tableRMtinterface_tableR#RtbasestbR"t	base_nameR*t	iteritemst	interfacetmethod_tablet
setdefaulttour_method_tabletupdatetdcttvaluestfuncR'tsuperRLR(RRRRR[RSRTRYR]RWRQRVRP((RR¶s"	
cCsÃ|i}|iotti|iƒƒ}n
tiƒ}|i	oti|i	ƒ}ng}d|i}x%t
||ƒD]}|d|7}q~Wx|D]}|d|7}qW|d7}|S(Ns    <method name="%s">
s2      <arg direction="in"  type="%s" name="%s" />
s(      <arg direction="out" type="%s" />
s    </method>
(R]t
_dbus_argsRt_dbus_in_signaturettupleRt	Signaturetin_sigtVariantSignaturet_dbus_out_signaturetout_sigR"treflection_dataR=tpairttype(RR]RRgRcRhRiRf((Rt_reflect_on_methodÐs 	



cCs~|i}|iotti|iƒƒ}n
tiƒ}d|i	}x%t||ƒD]}|d|}qXW|d}|S(Ns    <signal name="%s">
s"      <arg type="%s" name="%s" />
s    </signal>
(
R]R_Rt_dbus_signatureRaRRbR?RdR"RgR=Rh(RR]RR?RhRg((Rt_reflect_on_signalís	


(R"R#RRjRl(((RRLµs		t	InterfacecBstZeZRS(N(R"R#RLt
__metaclass__(((RRmÿstObjectcBsYtZdZd„Zd„Zd„Zedddddƒd	„ƒZd
„ZeZ	RS(s˜A base class for exporting your own Objects across the Bus.

    Just inherit from Object and provide a list of methods to share
    across the Bus
    cCsS||_||_|iƒ|_|iiƒ|_|ii	||i
|iƒdS(N(tobject_pathRt_object_pathRRRRR	t_connectiontregister_object_patht_unregister_cbt_message_cb(RRRp((RRs
		cCs	dGHdS(Nt
Unregister((RRA((RRtscsþyÒˆiƒ‰ˆiƒ}t|ˆ|ƒ\}}ˆi	ƒ}h}|iot
ti|iƒƒ‰nd‰|io?|i\}
}‡‡‡‡d†||
<‡‡d†||<n|ioˆiƒ||i<n||||Ž}
|iodSn|ioŒtˆƒdjo+|
djo
f}
q‘tdˆƒ‚q»tˆƒdjo
|
f}
q»ti|
ƒoq»tdˆˆfƒ‚n'd‰|
djo
f}
n
|
f}
tˆˆˆˆ|
ŒWn%tj
o}	t ˆˆ|	ƒnXdS(Ncstˆˆˆˆ|ŒS(N(RCRAR6R/R:R
(R
(R/RAR:R6(Rt<lambda>(scstˆˆ|ƒS(N(RKRAR6RF(RF(R6RA(RRw)sis8%s has an empty output signature but did not return NoneisK%s has multiple output values in signature %s but did not return a sequence(!R6t
get_memberR/t
get_interfacetinterface_nameR3Rtcandidate_methodR(t
get_args_listRRReRaRRbR:Rt_dbus_async_callbackstreturn_callbackterror_callbackt_dbus_sender_keywordt
get_senderR
R;R<toperatortisSequenceTypeRCRAt	ExceptionRFRK(RRAR6RRR(R/RzRRFR~R{R:R
((RAR6R/R:RRusF









	s#org.freedesktop.DBus.Introspectabletin_signaturett
out_signaturetscCsìd}|d|i7}|i|iid|ii}x£|iƒD]•\}}|d|7}xn|iƒD]`}t
|dtƒo||ii|ƒ7}qlt
|dtƒo||ii|ƒ7}qlqlW|d7}qEW|d7}|S(	Ns<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
s<node name="%s">
RNs  <interface name="%s">
R&t_dbus_is_signals  </interface>
s</node>
(RgRRqRMR-R#R"t
interfacesRURtfuncsR\R]ROR*RjRl(RR‹RRŠRgR]((Rt
IntrospectZs!


cCsd|i|it|ƒfS(Ns%<dbus.service.Object %s on %r at %#x>(RRqRR (R((RR!os(
R"R#R$RRtRutmethodRŒR!R%(((RRos				F!	(RRR‚RGt
exceptionsRR2t
decoratorsRtsignalRRR3RCRKRiRLRmRo(RmRRGRoRR3RLRCR2RR‚RKRRR((Rt?s				



B	B		J

Anon7 - 2021