XEP 0122¶
-
class
slixmpp.plugins.xep_0122.
XEP_0122
(xmpp, config=None)[source]¶ XEP-0122: Data Forms
-
stanza
= <module 'slixmpp.plugins.xep_0004.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0004/stanza/__init__.py'>¶
-
Stanza elements¶
-
class
slixmpp.plugins.xep_0122.stanza.
FormValidation
(xml=None, parent=None)[source]¶ Validation values for form fields.
Example:
<field var='evt.date' type='text-single' label='Event Date/Time'> <validate xmlns='http://jabber.org/protocol/xdata-validate' datatype='xs:dateTime'/> <value>2003-10-06T11:22:00-07:00</value> </field>
Questions:
Should this look at the datatype value and convert the range values as appropriate?
Should this stanza provide a pass/fail for a value from the field, or convert field value to datatype?
-
interfaces
= {'basic', 'datatype', 'open', 'range', 'regex'}¶
-
name
= 'validate'¶
-
namespace
= 'http://jabber.org/protocol/xdata-validate'¶
-
plugin_attrib
= 'validate'¶
-
plugin_attrib_map
= {}¶
-
plugin_tag_map
= {}¶
-
sub_interfaces
= {'basic', 'open', 'range', 'regex'}¶