__init__(self,
xmlnode=None,
from_jid=None,
to_jid=None,
stanza_type=None,
stanza_id=None,
error=None,
error_cond=None)
(Constructor)
| source code
|
Initialize an Iq object.
- Parameters:
xmlnode (unicode or libxml2.xmlNode or Iq) - XML node to_jid be wrapped into the Iq object
or other Iq object to be copied. If not given then new
presence stanza is created using following parameters.
from_jid (JID) - sender JID.
to_jid (JID) - recipient JID.
stanza_type (unicode ) - staza type: one of: "get", "set", "result" or "error".
stanza_id (unicode ) - stanza id -- value of stanza's "id" attribute. If not
given, then unique for the session value is generated.
error_cond (unicode ) - error condition name. Ignored if stanza_type is not "error".
- Overrides:
MucStanzaExt.__init__
|