diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-05 16:54:26 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-18 22:00:33 -0700 |
commit | 181aea737d5bce9479795b58c29b5a92da3bd48b (patch) | |
tree | 75fed30d668542593e12a208bc88775c19d6d6b6 /sleekxmpp/plugins | |
parent | ee702f40710219290508f95ac01df50a96d04f3c (diff) | |
download | slixmpp-181aea737d5bce9479795b58c29b5a92da3bd48b.tar.gz slixmpp-181aea737d5bce9479795b58c29b5a92da3bd48b.tar.bz2 slixmpp-181aea737d5bce9479795b58c29b5a92da3bd48b.tar.xz slixmpp-181aea737d5bce9479795b58c29b5a92da3bd48b.zip |
Add initial support for xml:lang for streams and stanza plugins.
Remaining items are suitable default actions for language supporting
interfaces.
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r-- | sleekxmpp/plugins/xep_0033.py | 2 | ||||
-rw-r--r-- | sleekxmpp/plugins/xep_0092/version.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0033.py b/sleekxmpp/plugins/xep_0033.py index feef5a13..9276b807 100644 --- a/sleekxmpp/plugins/xep_0033.py +++ b/sleekxmpp/plugins/xep_0033.py @@ -42,6 +42,8 @@ class Addresses(ElementBase): self.delAddresses(set_type) for addr in addresses: addr = dict(addr) + if 'lang' in addr: + del addr['lang'] # Remap 'type' to 'atype' to match the add method if set_type is not None: addr['type'] = set_type diff --git a/sleekxmpp/plugins/xep_0092/version.py b/sleekxmpp/plugins/xep_0092/version.py index c6223c10..5e84b2ff 100644 --- a/sleekxmpp/plugins/xep_0092/version.py +++ b/sleekxmpp/plugins/xep_0092/version.py @@ -79,5 +79,7 @@ class XEP_0092(BasePlugin): result = iq.send() if result and result['type'] != 'error': - return result['software_version'].values + values = result['software_version'].values + del values['lang'] + return values return False |