Known subclasses: wokkel.muc.BasicPresence, wokkel.muc.UserPresence

Presence.

This represents availability presence (as opposed to SubscriptionPresence).

Instance Variable available The availability being communicated. (type: bool)
Instance Variable show More specific availability. Can be one of 'chat', 'away', 'xa', 'dnd' or None. (type: str or NoneType)
Instance Variable statuses Natural language texts to detail the (un)availability. These are represented as a mapping from language code (str or None) to the corresponding text (unicode). If the key is None, the associated text is in the default language. (type: dict)
Instance Variable priority Priority level for this resource. Must be between -128 and
  1. Defaults to 0.
(type: int)
Method __init__ Undocumented
Method parseElement Parse the stanza element.
Method toElement Undocumented
Method __get_status Undocumented
Method _childParser_show Undocumented
Method _childParser_status Undocumented
Method _childParser_priority Undocumented

Inherited from Stanza (via BasePresence):

Instance Variable sender The sending entity. (type: jid.JID)
Instance Variable recipient The receiving entity. (type: jid.JID)
Class Method fromElement Create a stanza from a domish.Element.
available =
The availability being communicated. (type: bool)
show =
More specific availability. Can be one of 'chat', 'away', 'xa', 'dnd' or None. (type: str or NoneType)
statuses =
Natural language texts to detail the (un)availability. These are represented as a mapping from language code (str or None) to the corresponding text (unicode). If the key is None, the associated text is in the default language. (type: dict)
priority =
Priority level for this resource. Must be between -128 and
  1. Defaults to 0.
(type: int)
def __init__(self, recipient=None, sender=None, available=True, show=None, status=None, statuses=None, priority=0): (source)
Undocumented
def __get_status(self): (source)
Undocumented
def _childParser_show(self, element): (source)
Undocumented
def _childParser_status(self, element): (source)
Undocumented
def _childParser_priority(self, element): (source)
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.

def toElement(self): (source)
Undocumented
API Documentation for wokkel, generated by pydoctor at 2018-12-06 14:45:46.