Home | Trees | Index | Help |
|
---|
|
Iq
,
Message
,
Presence
Method Summary | |
---|---|
Initialize a Stanza object. | |
__del__(self)
| |
__eq__(self,
other)
| |
__ne__(self,
other)
| |
Add an XML node to the stanza's payload. | |
Add a new XML element to the stanza payload. | |
Stanza |
Create a deep copy of the stanza. |
Free the node associated with this Stanza object. | |
pyxmpp.error.StanzaErrorNode |
Get stanza error information. |
unicode |
Get "from" attribute of the stanza. |
unicode |
Get "from" attribute of the stanza. |
unicode |
Get "id" attribute of the stanza. |
libxml2.xmlNode |
Return the XML node wrapped into self . |
unicode |
Get "id" attribute of the stanza. |
unicode |
Get "type" attribute of the stanza. |
unicode |
Get "to" attribute of the stanza. |
unicode |
Get "to" attribute of the stanza. |
unicode |
Get "type" attribute of the stanza. |
str |
Serialize the stanza into an UTF-8 encoded XML string. |
Set stanza content to an XML node. | |
Set "from" attribute of the stanza. | |
Set "id" attribute of the stanza. | |
Set stanza payload to a new XML element. | |
Set "to" attribute of the stanza. | |
Set "type" attribute of the stanza. | |
Evaluate an XPath expression on the stanza XML node. |
Instance Variable Summary | |
---|---|
libxml2.xmlNode |
xmlnode : stanza XML node. |
Class Variable Summary | |
---|---|
str |
stanza_type = 'Unknown'
|
Method Details |
---|
__init__(self,
name_or_xmlnode,
from_jid=None,
to_jid=None,
stanza_type=None,
stanza_id=None,
error=None,
error_cond=None)
Initialize a Stanza object. |
add_content(self, content)Add an XML node to the stanza's payload.
|
add_new_content(self, ns_uri, name)Add a new XML element to the stanza payload.
|
copy(self)Create a deep copy of the stanza.
|
free(self)Free the node associated with thisStanza object. |
get_error(self)Get stanza error information.
|
get_from(self)Get "from" attribute of the stanza.
|
get_from_jid(self)Get "from" attribute of the stanza.
|
get_id(self)Get "id" attribute of the stanza.
|
get_node(self)Return the XML node wrapped intoself .
|
get_stanza_id(self)Get "id" attribute of the stanza.
|
get_stanza_type(self)Get "type" attribute of the stanza.
|
get_to(self)Get "to" attribute of the stanza.
|
get_to_jid(self)Get "to" attribute of the stanza.
|
get_type(self)Get "type" attribute of the stanza.
|
serialize(self)Serialize the stanza into an UTF-8 encoded XML string.
|
set_content(self, content)Set stanza content to an XML node.
|
set_from(self, from_jid)Set "from" attribute of the stanza.
|
set_id(self, stanza_id)Set "id" attribute of the stanza.
|
set_new_content(self, ns_uri, name)Set stanza payload to a new XML element.
|
set_to(self, to_jid)Set "to" attribute of the stanza.
|
set_type(self, stanza_type)Set "type" attribute of the stanza.
|
xpath_eval(self, expr, namespaces=None)Evaluate an XPath expression on the stanza XML node. The expression will be evaluated in context where the common namespace
(the one used for stanza elements, mapped to 'jabber:client',
'jabber:server', etc.) is bound to prefix "ns" and other namespaces are
bound accordingly to the
|
Instance Variable Details |
---|
xmlnodestanza XML node.
|
Class Variable Details |
---|
stanza_type
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:43 2005 | http://epydoc.sf.net |