diff options
author | Lance Stout <lancestout@gmail.com> | 2010-08-26 14:07:09 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-08-26 14:07:09 -0400 |
commit | 5c59f5bacaec6263d4b860856cd76b5b7bb1a531 (patch) | |
tree | d8b484f11f043a662095dbfb6c826946d34eadd0 | |
parent | e16b37d2be1d20b68343acfcef3c4f9846b0425e (diff) | |
download | slixmpp-5c59f5bacaec6263d4b860856cd76b5b7bb1a531.tar.gz slixmpp-5c59f5bacaec6263d4b860856cd76b5b7bb1a531.tar.bz2 slixmpp-5c59f5bacaec6263d4b860856cd76b5b7bb1a531.tar.xz slixmpp-5c59f5bacaec6263d4b860856cd76b5b7bb1a531.zip |
Clarify ElementBase documentation.
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index c76c904e..abe288db 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -54,6 +54,11 @@ class ElementBase(object): >>> message['to'] = "user@example.com" >>> message['body'] = "Hi!" + >>> message['body'] + "Hi!" + >>> del message['body'] + >>> message['body'] + "" The interface values map to either custom access methods, stanza XML attributes, or (if the interface is also in sub_interfaces) the @@ -61,7 +66,7 @@ class ElementBase(object): Custom access methods may be created by adding methods of the form "getInterface", "setInterface", or "delInterface", where - "Interface" is the titlecase version of the interface name. + "Interface" is the titlecase version of the interface name. Stanzas may be extended through the use of plugins. A plugin is simply a stanza that has a plugin_attrib value. For example: |