diff options
author | Lance Stout <lancestout@gmail.com> | 2010-12-07 23:07:40 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-12-07 23:07:40 -0500 |
commit | f474d378efdc754b57dedd60a9905ac5e75ee55d (patch) | |
tree | eba26755fdc0fb55ceddb0bde01fd5c77795775d /sleekxmpp/xmlstream/stanzabase.py | |
parent | defc252c7dabb1d54fe20b3ac8661d0198ff40bd (diff) | |
download | slixmpp-f474d378efdc754b57dedd60a9905ac5e75ee55d.tar.gz slixmpp-f474d378efdc754b57dedd60a9905ac5e75ee55d.tar.bz2 slixmpp-f474d378efdc754b57dedd60a9905ac5e75ee55d.tar.xz slixmpp-f474d378efdc754b57dedd60a9905ac5e75ee55d.zip |
Add support for using xml:lang values.
Support is only for adding literal XML content
to stanzas. Full support for things like multiple
message bodies with different xml:lang values is
still in the works.
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index aabd3864..5551d439 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -116,6 +116,9 @@ class ElementBase(object): associated plugin stanza classes. plugin_tag_map -- A mapping of plugin stanza tag names with the associated plugin stanza classes. + xml_ns -- The XML namespace, + http://www.w3.org/XML/1998/namespace, + for use with xml:lang values. Instance Attributes: xml -- The stanza's XML contents. @@ -144,7 +147,7 @@ class ElementBase(object): _get_attr -- Return an attribute's value from the main stanza element. _get_sub_text -- Return the text contents of a subelement. - _set_sub_ext -- Set the text contents of a subelement. + _set_sub_text -- Set the text contents of a subelement. _del_sub -- Remove a subelement. match -- Compare the stanza against an XPath expression. find -- Return subelement matching an XPath expression. @@ -170,6 +173,7 @@ class ElementBase(object): plugin_attrib_map = {} plugin_tag_map = {} subitem = None + xml_ns = 'http://www.w3.org/XML/1998/namespace' def __init__(self, xml=None, parent=None): """ |