__init__(self,
        element=None,
        from_jid=None,
        to_jid=None,
        stanza_type=None,
        stanza_id=None,
        error=None,
        error_cond=None,
        return_path=None,
        language=None,
        show=None,
        status=None,
        priority=None)
     (Constructor)
  
   |  
     | 
    
  
  Initialize a Presence object.
  
    - Parameters:
 
    
        element (ElementTree.Element) - XML element 
        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
None. 
        stanza_id (unicode) - stanza id -- value of stanza's "id" attribute 
        language (unicode) - default language for the stanza content 
        show (unicode) - "show" field of presence stanza. One of: None, "away",
"xa", "dnd", "chat". 
        status (unicode) - descriptive text for the presence stanza. 
        priority (int) - presence priority. 
        error_cond (unicode) - error condition name. Ignored if stanza_type is
not "error" 
      
    - Overrides:
        object.__init__
    
 
   
 |