diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-06 02:08:25 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-18 22:00:33 -0700 |
commit | f8249505524584e35c1c42f0948015373283bfa5 (patch) | |
tree | 5981f8e32f3e62bce16afead73dca76224dab8cc /README.rst | |
parent | 3d2d11f169407d8acd7ab9797398018bd414d974 (diff) | |
download | slixmpp-f8249505524584e35c1c42f0948015373283bfa5.tar.gz slixmpp-f8249505524584e35c1c42f0948015373283bfa5.tar.bz2 slixmpp-f8249505524584e35c1c42f0948015373283bfa5.tar.xz slixmpp-f8249505524584e35c1c42f0948015373283bfa5.zip |
Enable using xml:lang with normal interfaces.
Using the special language value '*' will return a dictionary of all
such elements keyed by language.
>>> msg = Message()
>>> msg['body'] = 'Hi!'
>>> msg['body|sv'] = 'Hej!'
>>> print(msg)
'<message xmlns="jabber:client">
<body>Hi!</body>
<body xml:lang="sv">Hej!</body>
</message>'
>>> print(msg['body|*'])
OrderedDict(
('', 'Hi!'),
('sv', 'Hej!'))
Remaining items:
- Stanza path matching does not support language specifiers for normal
interfaces, only for plugins.
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions