summaryrefslogtreecommitdiff
path: root/examples/muc.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-06 02:08:25 -0700
committerLance Stout <lancestout@gmail.com>2012-06-18 22:00:33 -0700
commitf8249505524584e35c1c42f0948015373283bfa5 (patch)
tree5981f8e32f3e62bce16afead73dca76224dab8cc /examples/muc.py
parent3d2d11f169407d8acd7ab9797398018bd414d974 (diff)
downloadslixmpp-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 'examples/muc.py')
0 files changed, 0 insertions, 0 deletions