xep_0004 doesn’t allow a field of type="hidden" in Form.add_field #246

mathieui opened this Issue Jun 30, 2013 · 1 comment


None yet
2 participants

mathieui commented Jun 30, 2013

Adding a field of type="hidden" is impossible if the form is not of type "form" or "result".

But we need to do so with the forms we return in e.g. XEP-0133.

Of course, we can bypass that with field['type'] = 'hidden' after the form.add_field, but I think it would be better to remove the

    del field['type']

in xep_0004/stanza/form.py

@bear bear self-assigned this Apr 12, 2015

This comment has been minimized.

Show comment Hide comment

bear Apr 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment