| Home | Trees | Index | Help |
|
|---|
| Package pyxmpp :: Package jabber :: Module disco :: Class DiscoIdentity |
|
object --+
|
CachedPropertyObject --+
|
object --+ |
| |
StanzaPayloadWrapperObject --+
|
DiscoIdentity
An <identity/> element of disco#info reply.
Identifies an item by its name, category and type.
:Ivariables:
- `disco`: the disco reply this is the part of.
- `xmlnode`: XML element describing the identity.
:Types:
- `disco`: `DiscoInfo`
- `xmlnode`: `libxml2.xmlNode`
| Method Summary | |
|---|---|
Initialize an `DiscoIdentity` object. | |
__del__(self)
| |
__str__(self)
| |
Get the category of the item. | |
Get the name of the item. | |
Get the type of the item. | |
Remove `self` from the containing `DiscoInfo` object. | |
Set the category of the item. | |
Set the name of the item. | |
Set the type of the item. | |
| Inherited from CachedPropertyObject | |
| |
| |
| Inherited from StanzaPayloadWrapperObject | |
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) | |
| Method Details |
|---|
__init__(self,
disco,
xmlnode_or_name,
item_category=None,
item_type=None,
replace=False)
|
get_category(self)Get the category of the item. :return: the category of the item. :returntype: `unicode` |
get_name(self)Get the name of the item. :return: the name of the item or `None`. :returntype: `unicode` |
get_type(self)Get the type of the item. :return: the type of the item. :returntype: `unicode` |
remove(self)Remove `self` from the containing `DiscoInfo` object. |
set_category(self, category)
Set the category of the item.
:Parameters:
- `category`: the new category.
:Types:
- `category`: `unicode`
|
set_name(self, name)
Set the name of the item.
:Parameters:
- `name`: the new name or `None`.
:Types:
- `name`: `unicode`
|
set_type(self, item_type)
Set the type of the item.
:Parameters:
- `item_type`: the new type.
:Types:
- `item_type`: `unicode`
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed May 31 22:36:59 2006 | http://epydoc.sf.net |