ACC SHELL

Path : /usr/lib/python/site-packages/dbus/
File Upload :
Current File : //usr/lib/python/site-packages/dbus/connection.pyo

Ńņ
¤Ü1Lc
@s&d
ZdZddkZyddkZWnej
oddkZnXddkZddklZ	l
Z
lZlZl
Z
lZlZlZlZddklZddklZlZlZlZlZddklZeid	ƒZd
„Zdefd„ƒYZ de	fd„ƒYZdS(t
ConnectiontSignalMatchtreStructuredTexti’’’’N(	Rt
LOCAL_PATHtLOCAL_IFACEtvalidate_interface_nametvalidate_member_nametvalidate_bus_nametvalidate_object_pathtvalidate_error_namet
UTF8String(t
DBusException(tErrorMessagetMethodCallMessaget
SignalMessagetMethodReturnMessagetHANDLER_RESULT_NOT_YET_HANDLED(tProxyObjectsdbus.connectioncOsdS(N((targstkwargs((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt_noop0scBseZdZeeddddddd„Zd„Zd„Zd„Ze	d„ƒZ
d„Zd„Zd„Z
d„Zd„Zd„ZRS(t_sender_name_ownert_membert
_interfacet_sendert_patht_handlert_args_matcht_rulet
_utf8_stringst_byte_arrayst
_conn_weakreft_destination_keywordt_interface_keywordt_message_keywordt_member_keywordt_sender_keywordt
_path_keywordt_int_args_matchcKsŻ|dj	ot|ƒn|dj	ot|ƒn|dj	ot|ƒn|dj	ot|ƒnd|_ti|ƒ|_||_	||_
||_||_||_
||_||_||_|	|_|
|_||_||_|
|_||_||_|p
d|_nøh|_x«|D]£}|idƒptd|ƒ‚nyt|dƒ}Wn#tj
otd|ƒ‚nX|djp
|djotd|ƒ‚n|||i|<q2WdS(Ntargs(SignalMatch: unknown keyword argument %siii?s9SignalMatch: arg match index must be in range(64), not %d(tNoneRRRRRtweakreftrefRRRRRRRRRR$R%R#R!R"R RR&t
startswitht	TypeErrortintt
ValueError(tselftconntsendertobject_pathtdbus_interfacetmemberthandlertutf8_stringstbyte_arraystsender_keywordtpath_keywordtinterface_keywordtmember_keywordtmessage_keywordtdestination_keywordRtkwargtindex((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt__init__<sT



																
	cCstt|ƒƒS(s-SignalMatch objects are compared by identity.(thashtid(R/((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt__hash__sscCs
||jS(s-SignalMatch objects are compared by identity.((R/tother((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt__eq__wscCs
||j	S(s-SignalMatch objects are compared by identity.((R/RD((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt__ne__{scCs|iS((R(R/((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt<lambda>scCs!|idjo
dg}|idj	o|id|iƒn|idj	o|id|iƒn|idj	o|id|iƒn|idj	o|id|iƒn|idj	o;x8|iiƒD]#\}}|id||fƒqŁWndi	|ƒ|_n|iS(Ns
type='signal'ssender='%s's	path='%s'sinterface='%s'smember='%s's
arg%d='%s't,(
RR(RtappendRRRR&t	iteritemstjoin(R/truleR?tvalue((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt__str__s 	cCs&d|it|ƒ|i|iƒfS(Ns<%s at %x "%s" on conn %r>(t	__class__RBRR(R/((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt__repr__”scCs
||_dS(N(R(R/tnew_name((s3/usr/lib/python2.6/site-packages/dbus/connection.pytset_sender_name_owner˜scKsˆ|d|ifjotS||ijotS||ijotS||ijotS||ijotS||ijotStS(N(	R(RtFalseRRRRRtTrue(R/R1R2R3R4R5R((s3/usr/lib/python2.6/site-packages/dbus/connection.pytmatches_removal_spec›sc
Cs‚d}|id|iƒfjotS|idj	oz|idtdtƒ}x_|iiƒD]J\}}|t|ƒjp&t	||t
ƒp|||jotSq_Wn|id|iƒfjotS|i
d|iƒfjotS|id|iƒfjotSyC|djp|ip|io"|id|id|iƒ}nh}|idj	o|iƒ||i<n|idj	o|iƒ||i<n|idj	o|iƒ||i<n|idj	o|iƒ||i<n|idj	o|iƒ||i<n|idj	o|||i<n|i||ŽWn$tiƒtidddƒnXtS(NR6R7s&Exception in handler for D-Bus signal:texc_infoi(R(Rt
get_senderRSR&t
get_args_listRTRJtlent
isinstanceR
Rt
get_memberRt
get_interfaceRtget_pathRRR$R tget_destinationR%R#R!R"RtloggingtbasicConfigt_loggerterror(R/tmessageRR?RMR((s3/usr/lib/python2.6/site-packages/dbus/connection.pytmaybe_handle_message«sN
#
cCsL|iƒ}|dj	o/|i||i|i|i|i|indS(N(RR(tremove_signal_receiverRRRRR(R/R0((s3/usr/lib/python2.6/site-packages/dbus/connection.pytremoveŽs
(s_sender_name_owners_members
_interfaces_senders_paths_handlers_args_matchs_rules
_utf8_stringss_byte_arrayss
_conn_weakrefs_destination_keywords_interface_keywords_message_keywords_member_keywords_sender_keywords
_path_keywords_int_args_matchN(t__name__t
__module__t	__slots__RSR(R@RCRERFtpropertyR1RNRPRRRURdRf(((s3/usr/lib/python2.6/site-packages/dbus/connection.pyR4s(3								3cBs­eZdZeZd„Zd„Zd
d
ed„Z	d
d
d
d
d„Z
d„Zd
d
d
d
d„Zd„Z
d„Zd	eeed
„Zd	eed„Zd„ZRS(szA connection to another application. In this base class there is
    assumed to be no bus daemon.

    :Since: 0.81.0
    cOsntt|ƒi||Žt|dƒpAd|_g|_h|_tiƒ|_	|i
|iiƒndS(Nt_dbus_Connection_initializedi(
tsuperRR@thasattrRkt"_Connection__call_on_disconnectiont!_signal_recipients_by_object_pathtthreadt
allocate_lockt
_signals_locktadd_message_filterROt_signal_func(R/RR((s3/usr/lib/python2.6/site-packages/dbus/connection.pyR@ńs			cCs|S(sReturn the unique name for the given bus name, activating it
        if necessary and possible.

        If the name is already unique or this connection is not to a
        bus daemon, just return it.

        :Returns: a bus name. If the given `bus_name` exists, the returned
            name identifies its current owner; otherwise the returned name
            does not exist.
        :Raises DBusException: if the implementation has failed
            to activate the given bus name.
        :Since: 0.81.0
        ((R/tbus_name((s3/usr/lib/python2.6/site-packages/dbus/connection.pytactivate_name_ownerscKs¬|iddƒ}|dj	oJ|dj	otdƒ‚nddkl}|dtddƒ|}n|o#tdd	i|iƒƒƒ‚n|i|||d
|ƒS(sÕReturn a local proxy for the given remote object.

        Method calls on the proxy are translated into method calls on the
        remote object.

        :Parameters:
            `bus_name` : str
                A bus name (either the unique name or a well-known name)
                of the application owning the object. The keyword argument
                named_service is a deprecated alias for this.
            `object_path` : str
                The object path of the desired object
            `introspect` : bool
                If true (default), attempt to introspect the remote
                object to find out supported methods and their signatures

        :Returns: a `dbus.proxies.ProxyObject`
        t
named_services3bus_name and named_service cannot both be specifiedi’’’’(twarnsiPassing the named_service parameter to get_object by name is deprecated: please use positional parameterst
stacklevelis4get_object does not take these keyword arguments: %ss, t
introspectN(	tpopR(R,twarningsRxtDeprecationWarningRKtiterkeystProxyObjectClass(R/RuR2RzRRwRx((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt
get_objects



c
	Ksż|iƒ|iddƒ}|dj	oJ|dj	otdƒ‚n|}ddkl}|dtddƒnt|||||||}	|ii	ƒzJ|i
i|hƒ}
|
i|hƒ}|i|gƒ}|i|	ƒWd|ii
ƒX|	S(	sArrange for the given function to be called when a signal matching
        the parameters is received.

        :Parameters:
            `handler_function` : callable
                The function to be called. Its positional arguments will
                be the arguments of the signal. By default it will receive
                no keyword arguments, but see the description of
                the optional keyword arguments below.
            `signal_name` : str
                The signal name; None (the default) matches all names
            `dbus_interface` : str
                The D-Bus interface name with which to qualify the signal;
                None (the default) matches all interface names
            `bus_name` : str
                A bus name for the sender, which will be resolved to a
                unique name if it is not already; None (the default) matches
                any sender.
            `path` : str
                The object path of the object which must have emitted the
                signal; None (the default) matches any object path
        :Keywords:
            `utf8_strings` : bool
                If True, the handler function will receive any string
                arguments as dbus.UTF8String objects (a subclass of str
                guaranteed to be UTF-8). If False (default) it will receive
                any string arguments as dbus.String objects (a subclass of
                unicode).
            `byte_arrays` : bool
                If True, the handler function will receive any byte-array
                arguments as dbus.ByteArray objects (a subclass of str).
                If False (default) it will receive any byte-array
                arguments as a dbus.Array of dbus.Byte (subclasses of:
                a list of ints).
            `sender_keyword` : str
                If not None (the default), the handler function will receive
                the unique name of the sending endpoint as a keyword
                argument with this name.
            `destination_keyword` : str
                If not None (the default), the handler function will receive
                the bus name of the destination (or None if the signal is a
                broadcast, as is usual) as a keyword argument with this name.
            `interface_keyword` : str
                If not None (the default), the handler function will receive
                the signal interface as a keyword argument with this name.
            `member_keyword` : str
                If not None (the default), the handler function will receive
                the signal name as a keyword argument with this name.
            `path_keyword` : str
                If not None (the default), the handler function will receive
                the object-path of the sending object as a keyword argument
                with this name.
            `message_keyword` : str
                If not None (the default), the handler function will receive
                the `dbus.lowlevel.SignalMessage` as a keyword argument with
                this name.
            `arg...` : unicode or UTF-8 str
                If there are additional keyword parameters of the form
                ``arg``\ *n*, match only signals where the *n*\ th argument
                is the value given for that keyword parameter. As of this
                time only string arguments can be matched (in particular,
                object paths and signatures can't).
            `named_service` : str
                A deprecated alias for `bus_name`.
        Rws3bus_name and named_service cannot both be specifiedi’’’’(RxsrPassing the named_service parameter to add_signal_receiver by name is deprecated: please use positional parametersRyiN(t_require_main_loopR{R(R,R|RxR}RRrtacquireRot
setdefaultRItrelease(
R/thandler_functiontsignal_nameR3RutpathtkeywordsRwRxtmatchtby_interfacet	by_membertmatches((s3/usr/lib/python2.6/site-packages/dbus/connection.pytadd_signal_receiver9s(G



	ccs+|dj	od|f}nd}|dj	od|f}nd}|dj	od|f}nd}x»|D]³}|ii|dƒ}|djoqpnx|D]y}|i|dƒ}|djoq¦nxJ|D]B}|i|dƒ}	|	djoqŁnx|	D]}
|
VqWqŁWq¦WqpWdS(N(N(N(N(R(Rotget(R/R‡R3R4t	path_keystinterface_keystmember_keysRŠR‹RŒtm((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt_iter_easy_matchess8


	


cKs|iddƒ}|dj	oJ|dj	otdƒ‚n|}ddkl}|dtddƒng}	g}
|iiƒzŲ|ii	|dƒ}|djodS|i	|dƒ}|djodS|i	|dƒ}
|
djodSxX|
D]P}||jp|i
||||||o|
i|ƒqū|	i|ƒqūW|	||<Wd|iiƒXx|
D]}|i
|ƒqrWdS(NRws3bus_name and named_service cannot both be specifiedi’’’’(RxsuPassing the named_service parameter to remove_signal_receiver by name is deprecated: please use positional parametersRyi(R{R(R,R|RxR}RrR‚RoRŽRURIR„t_clean_up_signal_match(R/thandler_or_matchR†R3RuR‡RˆRwRxtnewt	deletionsRŠR‹RŒR‰((s3/usr/lib/python2.6/site-packages/dbus/connection.pyRe»sL


	



	
cCsdS(N((R/R‰((s3/usr/lib/python2.6/site-packages/dbus/connection.pyR”īscCsģt|tƒptS|iƒ}|iƒ}|iƒ}x*|i|||ƒD]}|i|ƒqOW|tjou|t	joh|djo[xX|i
D]I}y||ƒWq—tj
o&}ti
ƒtidddƒq—Xq—WntS(svD-Bus filter function. Handle signals by dispatching to Python
        callbacks kept in the match-rule tree.
        tDisconnecteds-Exception in handler for Disconnected signal:RVi(RZRRR\R]R[R“RdRRRnt	ExceptionR_R`RaRb(R/RcR3R‡R†R‰tcbte((s3/usr/lib/python2.6/site-packages/dbus/connection.pyRtņs*




gšæc

sW|tjotdtƒ‚n|tjotdtƒ‚nh|
d6|d6‰td|d|d|d|ƒ}
y|
id	||ŒWn>tj
o2}tiƒti	d
|||i
|ƒ‚nXˆdjoˆdjo|i|
ƒdSˆdjo
t
‰nˆdjo
t
‰n‡‡‡fd†}|i|
||	d
|ƒS(sSCall the given method, asynchronously.

        If the reply_handler is None, successful replies will be ignored.
        If the error_handler is None, failures will be ignored. If both
        are None, the implementation may request that no reply is sent.

        :Returns: The dbus.lowlevel.PendingCall.
        :Since: 0.81.0
        s1Methods may not be called on the reserved path %ss6Methods may not be called on the reserved interface %sR6R7tdestinationR‡t	interfacetmethodt	signatures<Unable to set arguments %r according to signature %r: %s: %sNcsut|tƒoˆ|iˆŒnKt|tƒo&ˆtd|iƒ|iƒŒƒnˆtd|ƒƒdS(Ntnames%Unexpected type for reply message: %r(RZRRXRRtget_error_nameR,(Rc(t
reply_handlert
error_handlert
get_args_opts(s3/usr/lib/python2.6/site-packages/dbus/connection.pytmsg_reply_handler@s	trequire_main_loop(RRRR
RIR™R_R`RaRbROR(tsend_messageRtsend_message_with_reply(R/RuR2R3RžRŸRR¢R£ttimeoutR6R7R¦RcR›R„((R£R¤R¢s3/usr/lib/python2.6/site-packages/dbus/connection.pyt
call_asyncs<




	
	




	c
	Cs2|tjotdtƒ‚n|tjotdtƒ‚nh|d6|	d6}
td|d|d|d|ƒ}y|id	||ŒWn>tj
o2}tiƒti	d
|||i
|ƒ‚nX|i||ƒ}
|
i|
}t
|ƒdjod
St
|ƒdjo	|dSt|ƒSd
S(sECall the given method, synchronously.
        :Since: 0.81.0
        s1Methods may not be called on the reserved path %ss6Methods may not be called on the reserved interface %sR6R7RœR‡RRžRŸs<Unable to set arguments %r according to signature %r: %s: %siiN(RRRR
RIR™R_R`RaRbROt!send_message_with_reply_and_blockRXRYR(ttuple(R/RuR2R3RžRŸRR©R6R7R¤RcR›t
reply_messaget	args_list((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt
call_blockingMs6



	
		cCs|ii|ƒdS(s©Arrange for `callable` to be called with one argument (this
        Connection object) when the Connection becomes
        disconnected.

        :Since: 0.83.0
        N(RnRI(R/tcallable((s3/usr/lib/python2.6/site-packages/dbus/connection.pytcall_on_disconnectionwsN(RgRht__doc__RRR@RvR(RTR€RR“ReR”RtRSRŖRÆR±(((s3/usr/lib/python2.6/site-packages/dbus/connection.pyRčs*		&`	/		 	;((s
ConnectionsSignalMatch(!t__all__t
__docformat__R_RptImportErrortdummy_threadR)t_dbus_bindingsRt_ConnectionRRRRRRR	R
tdbus.exceptionsRt
dbus.lowlevelRR
RRRtdbus.proxiesRt	getLoggerRaRtobjectR(((s3/usr/lib/python2.6/site-packages/dbus/connection.pyt<module>s@(	“

ACC SHELL 2018