__init__(self,
xmlnode=None,
from_jid=None,
to_jid=None,
stanza_type=None,
stanza_id=None,
show=None,
status=None,
priority=0,
error=None,
error_cond=None)
(Constructor)
| source code
|
Initialize a MucPresence object.
- Parameters:
xmlnode (: unicode or libxml2.xmlNode or pyxmpp.stanza.Stanza) - : XML node to_jid be wrapped into the MucPresence object
or other Presence object to be copied. If not given then new
presence stanza is created using following parameters.
from_jid (: JID) - : sender JID.
to_jid (: JID) - : recipient JID.
stanza_type (: unicode ) - : staza type: one of: None, "available", "unavailable",
"subscribe", "subscribed", "unsubscribe", "unsubscribed" or
"error". "available" is automaticaly changed to_jid None.
stanza_id (: unicode ) - : stanza id -- value of stanza's "id" attribute
show (: unicode ) - : "show" field of presence stanza. One of: None, "away",
"xa", "dnd", "chat".
status (: unicode ) - : descriptive text for the presence stanza.
priority (: unicode ) - : presence priority.
error_cond (: unicode ) - : error condition name. Ignored if stanza_type is not "error"
- Overrides:
MucStanzaExt.__init__
|