Module Expr Str Assign NameStore Str ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Str Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str orelse If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIn NameLoad TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Raise Call NameLoad Str Assign NameStore Call NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn AttributeLoad NameLoad attr TupleLoad Str Str body Raise Call NameLoad Str Assign NameStore Call NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If CompareGtE Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Iq XMPP stanza handling

Normative reference:
  - `RFC 3920 <http://www.ietf.org/rfc/rfc3920.txt>`__
 N/A __docformat__ restructuredtext en etree ElementClass stanza Stanza N/A IQ_TYPES N/A get set result error Iq N/A Stanza N/A N/A <message /> stanza class. N/A element_name message __init__ N/A N/A self element from_jid to_jid stanza_type stanza_id error error_cond return_path language N/A None None None None None None None None None N/A N/A Initialize an `Iq` object.

        :Parameters:
            - `element`: XML element of this stanza.
            - `from_jid`: sender JID.
            - `to_jid`: recipient JID.
            - `stanza_type`: staza type: one of: "get", "set", "response"
              or "error".
            - `stanza_id`: stanza id -- value of stanza's "id" attribute. If
              not given, then unique for the session value is generated.
            - `error_cond`: error condition name. Ignored if `stanza_type` 
              is not "error".
            - `language`: default language for the stanza content
        :Types:
            - `element`: :etree:`ElementTree.Element`
            - `from_jid`: `JID`
            - `to_jid`: `JID`
            - `stanza_type`: `str`
            - `stanza_id`: `str`
            - `error`: `pyxmpp.error.StanzaErrorElement`
            - `error_cond`: `str`
            - `language`: `str`
         N/A N/A stanza_type None N/A N/A N/A element None N/A N/A N/A ValueError Missing iq type N/A N/A N/A stanza_type IQ_TYPES N/A N/A N/A ValueError Bad iq type N/A N/A N/A element None N/A stanza_id None N/A stanza_type N/A get set N/A N/A stanza_id N/A N/A self gen_id N/A N/A element None N/A N/A element iq N/A N/A N/A N/A isinstance element ElementClass N/A N/A N/A TypeError N/A Couldn't make Iq from  N/A repr element N/A N/A N/A Stanza __init__ self element from_jid from_jid to_jid to_jid stanza_type stanza_type stanza_id stanza_id error error error_cond error_cond return_path return_path language language N/A N/A N/A self element_name iq N/A N/A N/A ValueError The element is not <iq/> N/A copy N/A N/A self N/A N/A N/A Create a deep copy of the stanza.

        :returntype: `Iq` N/A result N/A Iq None N/A self from_jid N/A self to_jid N/A self stanza_type N/A self stanza_id N/A self error N/A N/A self _return_path N/A N/A N/A self _payload None N/A N/A N/A N/A self decode_payload N/A payload N/A self _payload N/A N/A N/A N/A Stanza add_payload result payload N/A result N/A make_error_response N/A N/A self cond N/A N/A N/A Create error response for the a "get" or "set" iq stanza.

        :Parameters:
            - `cond`: error condition name, as defined in XMPP specification.

        :return: new `Iq` object with the same "id" as self, "from" and "to"
            attributes swapped, type="error" and containing <error /> element
            plus payload of `self`.
        :returntype: `Iq` N/A N/A N/A self stanza_type N/A result error N/A N/A N/A ValueError Errors may not be generated for 'result' and 'error' iq N/A stanza N/A Iq stanza_type error from_jid N/A self to_jid to_jid N/A self from_jid stanza_id N/A self stanza_id error_cond cond N/A N/A N/A self _payload None N/A N/A N/A N/A self decode_payload N/A payload N/A self _payload N/A N/A N/A N/A Stanza add_payload stanza payload N/A stanza N/A make_result_response N/A N/A self N/A N/A N/A Create result response for the a "get" or "set" iq stanza.

        :return: new `Iq` object with the same "id" as self, "from" and "to"
            attributes replaced and type="result".
        :returntype: `Iq` N/A N/A N/A self stanza_type N/A set get N/A N/A N/A ValueError Results may only be generated for 'set' or 'get' iq N/A stanza N/A Iq stanza_type result from_jid N/A self to_jid to_jid N/A self from_jid stanza_id N/A self stanza_id N/A stanza N/A add_payload N/A N/A self payload N/A N/A N/A Add new the stanza payload. Fails if there is already some
        payload element attached (<iq/> stanza can contain only one payload
        element)
        
        Marks the stanza dirty.

        :Parameters:
            - `payload`: XML element or stanza payload object to add
        :Types:
            - `payload`: :etree:`ElementTree.Element` or
              `interfaces.StanzaPayload`
         N/A N/A N/A self _payload None N/A N/A N/A N/A self decode_payload N/A N/A N/A len N/A self _payload 1 N/A N/A N/A ValueError Cannot add more payload to Iq stanza N/A N/A N/A Stanza add_payload self payload N/A N/A