Package pyxmpp2 :: Module stanzaprocessor
[hide private]

Module stanzaprocessor

Handling of XMPP stanzas.

Normative reference:
Classes [hide private]
  StanzaProcessor
Universal stanza handler/router class.
Functions [hide private]
 
stanza_factory(element, return_path=None, language=None)
Creates Iq, Message or Presence object for XML stanza element
Variables [hide private]
  logger = logging.getLogger("pyxmpp2.stanzaprocessor")
Function Details [hide private]

stanza_factory(element, return_path=None, language=None)

 
Creates Iq, Message or Presence object for XML stanza element
Parameters:
  • element (ElementTree.Element) - the stanza XML element
  • return_path (StanzaRoute) - object through which responses to this stanza should be sent (will be weakly referenced by the stanza object).
  • language (unicode) - default language for the stanza