Home | Trees | Index | Help |
|
---|
|
object
--+ |StanzaPayloadObject
--+ | Roster
Method Summary | |
---|---|
Initialize Roster object. | |
__str__(self)
| |
Add an item to the roster. | |
Complete the XML node with self content. | |
Initialize Roster object from XML node. | |
Return a list of groups in the roster. | |
Return roster item with given jid . | |
Return a list of items in the roster. | |
Return a list of groups with given name. | |
Return a list of items with given name . | |
Remove item from the roster. | |
Apply an update request to the roster. | |
Inherited from StanzaPayloadObject | |
libxml2.xmlNode or libxml2.xmlDoc |
Get the XML representation of self . |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Instance Variable Summary | |
---|---|
dict of JID -> RosterItem |
items_dict : items indexed by JID. |
Class Variable Summary | |
---|---|
unicode |
xml_element_name : name for the XML element provided by the class. |
unicode |
xml_element_namespace : namespace URI for the XML element provided
by the class. |
Method Details |
---|
__init__(self,
node=None,
server=False,
strict=True)
|
add_item(self, item_or_jid, subscription='none', name=None, groups=(), ask=None)Add an item to the roster. The |
complete_xml_element(self, xmlnode, doc)Complete the XML node with Should be overriden in classes derived from
|
from_xml(self, node, strict=True)Initialize Roster object from XML node. If |
get_groups(self)Return a list of groups in the roster. |
get_item_by_jid(self, jid)Return roster item with givenjid .
|
get_items(self)Return a list of items in the roster. |
get_items_by_group(self, group, case_sensitive=True)Return a list of groups with given name. If |
get_items_by_name(self, name, case_sensitive=True)Return a list of items with given If |
remove_item(self, jid)Remove item from the roster. |
update(self, query)Apply an update request to the roster.
|
Instance Variable Details |
---|
items_dictitems indexed by JID.
|
Class Variable Details |
---|
xml_element_namename for the XML element provided by the class.
|
xml_element_namespacenamespace URI for the XML element provided by the class.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:32 2005 | http://epydoc.sf.net |