| Home | Trees | Index | Help |
|
|---|
|
|
object --+
|
StanzaPayloadObject
Delay,
Field,
Form,
Item,
Option,
Register,
Roster,
RosterItem,
VCardBase class for objects that may be used as XMPP stanza payload and don't keep internal XML representation, only parsed values.
Provides as_xml method. Derived classes must override xml_element_name and
xml_element_namespace class attributes and the complete_xml_element method.
Please note that not all classes derived from StanzaPayloadObject should be
used directly as stanza payload. Some of them are parts of higher level objects.
| Method Summary | |
|---|---|
libxml2.xmlNode or libxml2.xmlDoc |
Get the XML representation of self. |
Complete the XML node with self content. | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
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 | |
x.__str__() <==> str(x) | |
| 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 |
|---|
as_xml(self, parent=None, doc=None)Get the XML representation of New document will be created if no
|
complete_xml_element(self, xmlnode, doc)Complete the XML node with Should be overriden in classes derived from
|
| 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:42 2005 | http://epydoc.sf.net |