Home | Trees | Indices | Help |
|
---|
|
|
|||
|
|||
|
|||
|
|||
Stanza |
|
||
unicode
|
|
||
ElementTree.Element |
|
||
ElementTree.Element |
|
||
|
|||
|
|||
|
|||
|
|||
list of StanzaPayload
|
|
||
StanzaPayload |
|
||
Inherited from |
|
|||
|
|
|||
element_name =
|
|||
last_id = 238811
|
|
|||
pyxmpp2.error.StanzaErrorElement |
_error error associated a stanza of type "error" |
||
unicode
|
_namespace namespace of this stanza element |
||
list of (unicode , StanzaPayload)
|
_payload the stanza payload |
||
weakref to StanzaRoute |
_return_path weak reference to the return route object |
|
|||
JID |
from_jid Source JID of the stanza. |
||
JID |
to_jid Destination JID of the stanza. |
||
unicode
|
stanza_type Stanza type, one of: "get", "set", "result" or "error". |
||
unicode
|
stanza_id Stanza id. |
||
StanzaErrorElement |
error Stanza error element. |
||
StanzaRoute |
return_path Stream the stanza was received from. |
||
Inherited from |
|
|
|
Return the XML stanza representation. Always return an independent copy of the stanza XML representation, which can be freely modified without affecting the stanza.
|
Return the XML stanza representation. This returns the original or cached XML representation, which may be much more efficient than as_xml. Result of this function should never be modified.
|
Decode payload from the element passed to the stanza constructor. Iterates over stanza children and creates StanzaPayload objects for them. Called automatically by get_payload() and other methods that access the payload. For the Stanza class stanza namespace child elements will also be included as the payload. For subclasses these are no considered payload. |
Mark the stanza 'dirty' so the XML representation will be re-built the next time it is requested. This should be called each time the payload attached to the stanza is modifed. |
Set stanza payload to a single item. All current stanza content of will be dropped. Marks the stanza dirty.
|
Add new the stanza payload. Marks the stanza dirty.
|
|
Get the first payload item matching the given class and optional key. Payloads may be addressed using a specific payload class or via the generic XMLPayload element, though the XMLPayload representation is available only as long as the element is not requested by a more specific type.
|
|
|
from_jidSource JID of the stanza.
|
to_jidDestination JID of the stanza.
|
stanza_typeStanza type, one of: "get", "set", "result" or "error".
|
stanza_idStanza id.
|
errorStanza error element.
|
return_pathStream the stanza was received from.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 10 09:22:51 2011 | http://epydoc.sourceforge.net |