| 
  Initialize a Presence object.| __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,
        stream=None)
    (Constructor)
 | source code |  
    Parameters:
        xmlnode(unicodeorlibxml2.xmlNodeor Stanza) - XML node to_jid be wrapped into the Presence 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" attributeshow(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:
        stanza.Stanza.__init__
     |