Home | Trees | Index | Help |
---|
Package xmpp :: Module protocol :: Class Presence |
|
Node
--+ |Protocol
--+ | Presence
Method Summary | |
---|---|
Create presence object. | |
Returns the reason of the presence (for groupchat) | |
Returns the presence affiliation (for groupchat) | |
Returns the presence jid (for groupchat) | |
Returns the nick value (for nick change in groupchat) | |
Returns the priority of the message. | |
Returns the reason of the presence (for groupchat) | |
Returns the presence role (for groupchat) | |
Returns the show value of the message. | |
Returns the status string of the message. | |
Returns the status code of the presence (for groupchat) | |
Sets the priority of the message. | |
Sets the show value of the message. | |
Sets the status string of the message. | |
Inherited from Protocol | |
Set the item 'item' to the value 'val'. | |
Return the error-condition (if present) or the textual description of the error (otherwise). | |
Return the error code. | |
Return value of the 'from' attribute. | |
Return the value of the 'id' attribute. | |
Return the list of namespaces to which belongs the direct childs of element | |
Return the timestamp in the 'yyyymmddThhmmss' format. | |
Return value of the 'to' attribute. | |
Return the value of the 'type' attribute. | |
Set the error code. | |
Set the value of the 'from' attribute. | |
Set the value of the 'id' attribute. | |
Set the timestamp. | |
Set the value of the 'to' attribute. | |
Set the value of the 'type' attribute. | |
Inherited from Node | |
Deletes node's attribute "item". | |
Reduce memory usage caused by T/NT classes - use memory only when needed. | |
Returns node's attribute "item" value. | |
Method used to dump node into textual representation. | |
If "node" argument is provided, adds it as child node. | |
Adds some CDATA to node. | |
Removes all CDATA from the node. | |
Deletes an attribute "key" | |
Deletes the "node" from the node's childs list, if "node" is an instance. | |
Returns value of specified attribute. | |
Returns all node's attributes as dictionary. | |
Serialise node, dropping all tags and leaving CDATA intact. | |
Returns all node's child nodes as list. | |
Returns all node CDATA as string (concatenated). | |
Returns the name of node | |
Returns the namespace of node | |
Returns the parent of node (if present). | |
Return the payload of node i.e. | |
Filters all child nodes using specified arguments as filter. | |
Returns attribute value of the child with specified name (or None if no such attribute). | |
Returns cocatenated CDATA of the child with specified name. | |
Filters all child nodes using specified arguments as filter. | |
Checks if node have attribute "key". | |
Sets attribute "key" with the value "val". | |
Sets node's CDATA to provided string. | |
Changes the node name. | |
Changes the node namespace. | |
Sets node's parent to "node". | |
Sets node payload according to the list specified. | |
Same as getTag but if the node with specified namespace/attributes not found, creates such node and returns it. | |
Creates new node (if not already present) with name "tag" and sets it's attribute "attr" to value "val". | |
Creates new node (if not already present) with name "tag" and (optionally) attributes "attrs" and sets it's CDATA to string "val". |
Class Variable Summary | |
---|---|
Inherited from Node | |
int |
FORCE_NODE_RECREATION = 0 |
Method Details |
---|
__init__(self,
to=None,
typ=None,
priority=None,
show=None,
status=None,
attrs={},
frm=None,
timestamp=None,
payload=[],
xmlns='jabber:client',
node=None)
Create presence object. You can specify recipient, type of message,
priority, show and status values any additional attributes, sender of
the presence, timestamp, any additional payload (f.e. jabber:x:delay
element) and namespace in one go. Alternatively you can pass in the
other XML object as the 'node' parameted to replicate it as
presence.
|
getActor(self)Returns the reason of the presence (for groupchat) |
getAffiliation(self)Returns the presence affiliation (for groupchat) |
getJid(self)Returns the presence jid (for groupchat) |
getNick(self)Returns the nick value (for nick change in groupchat) |
getPriority(self)Returns the priority of the message. |
getReason(self)Returns the reason of the presence (for groupchat) |
getRole(self)Returns the presence role (for groupchat) |
getShow(self)Returns the show value of the message. |
getStatus(self)Returns the status string of the message. |
getStatusCode(self)Returns the status code of the presence (for groupchat) |
setPriority(self, val)Sets the priority of the message. |
setShow(self, val)Sets the show value of the message. |
setStatus(self, val)Sets the status string of the message. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Oct 5 23:57:43 2006 | http://epydoc.sf.net |