summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004/stanza/field.py
diff options
context:
space:
mode:
authorMike Taylor <bear42@gmail.com>2015-09-18 15:11:47 -0400
committerMike Taylor <bear42@gmail.com>2015-09-18 15:11:47 -0400
commit5525ef22851d42246782fa0adf1dc2b40e493840 (patch)
tree276bd6aab21a1528b7bac772428182fb4b400ca7 /sleekxmpp/plugins/xep_0004/stanza/field.py
parentda14ce16ec564a11394dc0ee6ee446a4dfa97a5d (diff)
parent0b14ef82d4058925e7e9db22038777d4654e8199 (diff)
downloadslixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.tar.gz
slixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.tar.bz2
slixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.tar.xz
slixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.zip
Merge pull request #395 from rerobins/refactor_forms
XEP_0004: Data Forms use register_stanza_plugin
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