Home | Trees | Index | Help |
|
---|
|
StanzaErrorNode
,
StreamErrorNode
Method Summary | |
---|---|
Initialize an ErrorNode object. | |
__del__(self)
| |
libxml2.xmlNode |
Add custom condition element to the error. |
Downgrade an XMPP error element to the legacy format. | |
Free the associated XML node. | |
Free the associated "borrowed" XML node. | |
libxml2.xmlNode |
Get the condition element of the error. |
unicode |
Get the description text from the error element. |
bool |
Check if the error node is a legacy error element. |
str |
Serialize the element node. |
Upgrade a legacy error element to the XMPP compliant one. | |
Evaluate XPath expression on the error element. | |
Initialize an ErrorNode object from an XML node. |
Method Details |
---|
__init__(self,
xmlnode_or_cond,
ns=None,
copy=True,
parent=None)
Initialize an ErrorNode object. |
add_custom_condition(self, ns, cond, content=None)Add custom condition element to the error.
|
downgrade(self)Downgrade an XMPP error element to the legacy format. Add a numeric code attribute according to the condition name. |
free(self)Free the associated XML node. |
free_borrowed(self)Free the associated "borrowed" XML node. |
get_condition(self, ns=None)Get the condition element of the error.
|
get_text(self)Get the description text from the error element.
|
is_legacy(self)Check if the error node is a legacy error element.
|
serialize(self)Serialize the element node.
|
upgrade(self)Upgrade a legacy error element to the XMPP compliant one. Use the error code provided to select the condition and the <error/> CDATA for the error text. |
xpath_eval(self, expr, namespaces=None)Evaluate XPath expression on the error element. 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
|
__from_xml(self, xmlnode, ns, copy, parent)Initialize an ErrorNode object from an XML node.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:46 2005 | http://epydoc.sf.net |