403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/textmessage.pyc
ó
}9Rc@sµdZddlZddlmZddlmZddlmZddlm	Z	de
fd„ƒYZd	e
fd
„ƒYZd„Z
d„Zd
„Zd„Zejd„ZdS(sĀ
Support code for the C{landscape-message} utility, which sends a text
message to the Landscape web UI via the landscape-client's dbus
messaging service (see L{landscape.plugins.dbus_message}).
i’’’’N(tlog_failure(tLandscapeReactor(tRemoteBrokerConnector(t
ConfigurationtAcceptedTypeErrorcBseZdZRS(sZ
    Raised when a message is sent without 'text-message' being an
    accepted type.
    (t__name__t
__module__t__doc__(((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyRstEmptyMessageErrorcBseZdZRS(s(Raised when an empty message is provied.(RRR(((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyRscCs*idd6|d6}|j|tƒ}|S(sAdd a message to the queue via a remote broker.

    The message is of type C{text-message}.

    @param broker: A connected L{RemoteBroker} object to use to send
        the message.
    @return: A L{Deferred} which will fire with the result of the send.
    stext-messagettypetmessage(tsend_messagetTrue(ttexttbrokerR
tresponse((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyRs	cCs	dGHdS(Nu
Message sent.((tresult((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyt
got_result(scCsŒtjjpd}t|ƒdkrDdGHtjjƒj|ƒ}n/djg|dD]}|j|ƒ^qUƒ}|sˆtdƒ‚n|S(NsUTF-8isNPlease enter your message, and send EOF (Control + D after newline) when done.u isText messages may not be empty.(tsyststdintencodingtlentreadtdecodetjoinR(targsRR
tx((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pytget_message,s/cCsGd|krtdƒ‚nt|ƒ}t||ƒ}|jtƒ|S(Nstext-messagesRText messages may not be created.  Is Landscape Client registered with the server?(RRRtaddCallbackR(taccepted_typesRRR
td((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pytgot_accepted_types9s
cs¦tƒ‰tƒ}|jˆƒ‡fd†}d„}tˆ|ƒ‰ˆjƒ}|j|ƒ|j|ƒ|j‡fd†ƒ|j‡fd†ƒˆjƒ|S(s‡Send a message to Landscape.

    This function runs a Twisted reactor, prints various status
    messages, and exits the process.
    cs|jƒ}|jt|ˆƒS(N(tget_accepted_message_typesRR(RR(R(s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pytgot_connectionMscSst|ƒdS(N(R(tfailure((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyt	got_errorQscs
ˆjƒS(N(t
disconnect(R(t	connector(s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyt<lambda>XscsˆjdˆjjƒS(Ni(t
call_latert_reactortstop(tignored(treactor(s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyR&]s(	RRtloadRtconnectRt
addErrbacktaddBothtrun(RtconfigR!R#R((R+RR%s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyR0Cs		
	


(RRtlandscape.lib.logRtlandscape.reactorRtlandscape.broker.ampRtlandscape.deploymentRt	ExceptionRRRRRRtargvR0(((s9/usr/lib/python2.7/dist-packages/landscape/textmessage.pyt<module>s			
	

Youez - 2016 - github.com/yon3zu
LinuXploit