summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004/stanza/field.py
diff options
context:
space:
mode:
authorRobert Robinson <rerobins@gmail.com>2015-09-14 14:31:17 -0600
committerRobert Robinson <rerobins@gmail.com>2015-09-14 16:46:36 -0600
commit0724f623bb613007f9acd6540efd4f256c8b6503 (patch)
tree1b82d65e7f46656b067ddbfb536e0dac8c430036 /sleekxmpp/plugins/xep_0004/stanza/field.py
parentbb094cc6498838cece046d9ed74881232fb5010d (diff)
downloadslixmpp-0724f623bb613007f9acd6540efd4f256c8b6503.tar.gz
slixmpp-0724f623bb613007f9acd6540efd4f256c8b6503.tar.bz2
slixmpp-0724f623bb613007f9acd6540efd4f256c8b6503.tar.xz
slixmpp-0724f623bb613007f9acd6540efd4f256c8b6503.zip
Force forms and fields to use plugin resolution
Instead of using the interface/subinterface code that was currently being implemented for the plugin. (cherry picked from commit 1467ec7)
Diffstat (limited to 'sleekxmpp/plugins/xep_0004/stanza/field.py')
-rw-r--r--sleekxmpp/plugins/xep_0004/stanza/field.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0004/stanza/field.py b/sleekxmpp/plugins/xep_0004/stanza/field.py
index 51f85995..73e48758 100644
--- a/sleekxmpp/plugins/xep_0004/stanza/field.py
+++ b/sleekxmpp/plugins/xep_0004/stanza/field.py
@@ -13,8 +13,9 @@ class FormField(ElementBase):
namespace = 'jabber:x:data'
name = 'field'
plugin_attrib = 'field'
+ plugin_multi_attrib = 'fields'
interfaces = set(('answer', 'desc', 'required', 'value',
- 'options', 'label', 'type', 'var'))
+ 'label', 'type', 'var'))
sub_interfaces = set(('desc',))
plugin_tag_map = {}
plugin_attrib_map = {}
@@ -165,6 +166,7 @@ class FieldOption(ElementBase):
plugin_attrib = 'option'
interfaces = set(('label', 'value'))
sub_interfaces = set(('value',))
+ plugin_multi_attrib = 'options'
FormField.addOption = FormField.add_option