XEP-0004: add "forms" as a multi-attrib plugin for Form

This commit is contained in:
mathieui 2021-03-07 21:14:38 +01:00
parent c1a598c34b
commit ade1b010ed

View file

@ -19,6 +19,7 @@ class Form(ElementBase):
namespace = 'jabber:x:data'
name = 'x'
plugin_attrib = 'form'
plugin_multi_attrib = 'forms'
interfaces = OrderedSet(('instructions', 'reported', 'title', 'type', 'items', 'values'))
sub_interfaces = {'title'}
form_types = {'cancel', 'form', 'result', 'submit'}