XEP 0122

1.6 Documentation

«  XEP 0118   ::   Contents   ::   XEP 0128  »

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?

get_basic()[source]
get_open()[source]
get_range()[source]
get_regex()[source]
interfaces = {'basic', 'datatype', 'open', 'range', 'regex'}
name = 'validate'
namespace = 'http://jabber.org/protocol/xdata-validate'
plugin_attrib = 'validate'
plugin_attrib_map = {}
plugin_tag_map = {}
remove_all(except_tag=None)[source]
set_basic(value)[source]
set_open(value)[source]
set_range(value, minimum=None, maximum=None)[source]
set_regex(regex)[source]
sub_interfaces = {'basic', 'open', 'range', 'regex'}

«  XEP 0118   ::   Contents   ::   XEP 0128  »