diff options
author | mathieui <mathieui@mathieui.net> | 2018-02-11 16:42:59 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-02-11 16:42:59 +0100 |
commit | e1777263873e96d7189b85a3c57197ab6176fae7 (patch) | |
tree | 258ceedbb75dfd51e536e998b0e69cc524dd706b /slixmpp/plugins/xep_0004 | |
parent | 20e88fda50832c8a3412586da58f19df2325fef7 (diff) | |
download | slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.tar.gz slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.tar.bz2 slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.tar.xz slixmpp-e1777263873e96d7189b85a3c57197ab6176fae7.zip |
Fix usage of the 0004 plugin interface
form['fields'] is an ordered list of fields while most plugins expect a
dict there. Fixes, among other things, a caps bug.
Diffstat (limited to 'slixmpp/plugins/xep_0004')
-rw-r--r-- | slixmpp/plugins/xep_0004/stanza/form.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0004/stanza/form.py b/slixmpp/plugins/xep_0004/stanza/form.py index 0ae22098..ff1a51fb 100644 --- a/slixmpp/plugins/xep_0004/stanza/form.py +++ b/slixmpp/plugins/xep_0004/stanza/form.py @@ -23,7 +23,7 @@ class Form(ElementBase): namespace = 'jabber:x:data' name = 'x' plugin_attrib = 'form' - interfaces = OrderedSet(('instructions', 'reported', 'title', 'type', 'items', )) + interfaces = OrderedSet(('instructions', 'reported', 'title', 'type', 'items', 'values')) sub_interfaces = {'title'} form_types = {'cancel', 'form', 'result', 'submit'} |