Undocumented
Method parseElement Parse the stanza element.

Inherited from Stanza:

Instance Variable sender The sending entity. (type: jid.JID)
Instance Variable recipient The receiving entity. (type: jid.JID)
Method __init__ Undocumented
Class Method fromElement Create a stanza from a domish.Element.
Method toElement Undocumented
def parseElement(self, element): (source)

Parse the stanza element.

This is called with the stanza's element when a Stanza is created using fromElement. It parses the stanza's core attributes (addressing, type and id), strips the namespace from the stanza element for easier transport across streams and passes on child elements for further parsing.

Child element parsers are defined by providing a childParsers attribute on a subclass, as a mapping from (URI, name) to the name of the handler on self. parseElement will accumulate childParsers from its class hierarchy, iterate over the child elements and pass it to matching handlers based on the child element's URI and name. The special key of None can be used to pass all child elements to.

API Documentation for wokkel, generated by pydoctor at 2018-12-06 14:45:46.