Add more stanzabase docs

This commit is contained in:
Lance Stout
2011-11-21 23:17:39 -08:00
parent 2d610dfdc8
commit 4498e992a2
2 changed files with 127 additions and 7 deletions

View File

@@ -140,7 +140,7 @@ class ElementBase(object):
>>> message['custom']['custom'] # Must use all interfaces
'bar'
If the plugin sets the value is_extension = True, then both setting
If the plugin sets :attr:`is_extension` to ``True``, then both setting
and getting an interface value that is the same as the plugin's
plugin_attrib value will work, as so::
@@ -1087,12 +1087,12 @@ class ElementBase(object):
class StanzaBase(ElementBase):
"""
StanzaBase provides the foundation for all other stanza objects used by
SleekXMPP, and defines a basic set of interfaces common to nearly
all stanzas. These interfaces are the 'id', 'type', 'to', and 'from'
attributes. An additional interface, 'payload', is available to access
the XML contents of the stanza. Most stanza objects will provided more
specific interfaces, however.
StanzaBase provides the foundation for all other stanza objects used
by SleekXMPP, and defines a basic set of interfaces common to nearly
all stanzas. These interfaces are the ``'id'``, ``'type'``, ``'to'``,
and ``'from'`` attributes. An additional interface, ``'payload'``, is
available to access the XML contents of the stanza. Most stanza objects
will provided more specific interfaces, however.
**Stanza Interfaces:**