Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/landscape/manager/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/landscape/manager/plugin.pyc

ó
ÍÿŠTc@sfddlmZddlmZddlmZddlmZdZdZ	defd„ƒYZ
d	S(
iÿÿÿÿ(t
maybeDeferred(tlog_failure(t
format_object(tBrokerClientPluginiit
ManagerPlugincBs eZed„ƒZd„ZRS(cCs|jS(s&An alias for the C{client} attribute}.(tclient(tself((s</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pytmanagersc	smtˆˆˆŽ}d„}‡‡‡fd†}‡‡fd†}|j|ƒ|j|ƒ|j|ƒ|S(s"Send an operation-result message after calling C{callable}.

        If the function returns normally, an operation-result
        indicating success will be sent.  If the function raises an
        exception, an operation-result indicating failure will be
        sent.

        The function can also return a C{Deferred}, and the behavior above
        still applies.

        @param message: The original message.
        @param callable: The function to call to handle the message.
            C{args} and C{kwargs} are passed to it.
        cSs
t|fS(N(t	SUCCEEDED(ttext((s</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pytsuccess$scsKd|jj|jf}dtˆƒˆˆf}t|d|ƒt|fS(Ns%s: %ss9Error occured running message handler %s with args %r %r.tmsg(ttypet__name__tvalueRRtFAILED(tfailureR	R(targstcallabletkwargs(s</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pyR's
cs]|\}}idd6|d6ˆdd6}|r>||d<nˆjjj|ˆjdtƒS(Nsoperation-resultRtstatussoperation-idsresult-textturgent(Rtbrokertsend_messaget_session_idtTrue(t.0RR	tresult(Rtmessage(s</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pytsend.s	

(RtaddCallbackt
addErrback(	RRRRRtdeferredR
RR((RRRRRs</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pytcall_with_operation_results		


(R
t
__module__tpropertyRR!(((s</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pyRsN(ttwisted.internet.deferRtlandscape.lib.logRt
landscape.logRtlandscape.broker.clientRRRR(((s</usr/lib/python2.7/dist-packages/landscape/manager/plugin.pyt<module>s