Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Package jabber :: Module muccore :: Class MucPresence |
|
MucStanzaExt
--+ |Stanza
--+ | | |Presence
--+ | MucPresence
Extend `Presence` with MUC related interface.
Method Summary | |
---|---|
Initialize a `MucPresence` object. | |
Return a copy of `self`. | |
Free the data associated with this `MucPresence` object. | |
If `self` is a MUC room join request return the information contained. | |
Make the presence stanza a MUC room join request. | |
Inherited from Presence | |
Get presence priority. | |
Get presence "show" field. | |
Get presence status description. | |
Create "accept" response for the "subscribe"/"subscribed"/"unsubscribe"/"unsubscribed" presence stanza. | |
Create "deny" response for the "subscribe"/"subscribed"/"unsubscribe"/"unsubscribed" presence stanza. | |
Create error response for the any non-error presence stanza. | |
Change presence priority. | |
Change presence "show" field. | |
Change presence status description. | |
Inherited from Stanza | |
| |
| |
| |
Add an XML node to the stanza's payload. | |
Add a new XML element to the stanza payload. | |
Get stanza error information. | |
Get "from" attribute of the stanza. | |
Get "from" attribute of the stanza. | |
Get "id" attribute of the stanza. | |
Return the XML node wrapped into `self`. | |
Get "id" attribute of the stanza. | |
Get "type" attribute of the stanza. | |
Get "to" attribute of the stanza. | |
Get "to" attribute of the stanza. | |
Get "type" attribute of the stanza. | |
Serialize the stanza into an UTF-8 encoded XML string. | |
Set stanza content to an XML node. | |
Set "from" attribute of the stanza. | |
Set "id" attribute of the stanza. | |
Set stanza payload to a new XML element. | |
Set "to" attribute of the stanza. | |
Set "type" attribute of the stanza. | |
Evaluate an XPath expression on the stanza XML node. | |
Inherited from MucStanzaExt | |
Remove the MUC specific stanza payload element. | |
Get the MUC specific payload element. | |
Create <query xmlns="...muc#admin"/> element in the stanza. | |
Create <x xmlns="...muc#user"/> element in the stanza. | |
Free MUC specific data. |
Class Variable Summary | |
---|---|
Inherited from Presence | |
str |
stanza_type = 'presence'
|
Method Details |
---|
__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)
|
copy(self)Return a copy of `self`.
|
free(self)Free the data associated with this `MucPresence` object.
|
get_join_info(self)If `self` is a MUC room join request return the information contained. :return: the join request details or `None`. :returntype: `MucX` |
make_join_request(self, password=None, history_maxchars=None, history_maxstanzas=None, history_seconds=None, history_since=None)Make the presence stanza a MUC room join request. :Parameters: - `password`: password to the room. - `history_maxchars`: limit of the total number of characters in history. - `history_maxstanzas`: limit of the total number of messages in history. - `history_seconds`: send only messages received in the last `seconds` seconds. - `history_since`: Send only the messages received since the dateTime specified (UTC). :Types: - `password`: `unicode` - `history_maxchars`: `int` - `history_maxstanzas`: `int` - `history_seconds`: `int` - `history_since`: `datetime.datetime` |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:36:59 2006 | http://epydoc.sf.net |