Merge branch 'uri-type' into 'master'

Add xs:anyURI type to import url field

See merge request sjehuda/slixfeed!9
This commit is contained in:
Schimon Jehudah 2024-02-16 01:32:15 +00:00
commit a4f870f26c

View file

@ -862,11 +862,12 @@ class Slixfeed(slixmpp.ClientXMPP):
form = self['xep_0004'].make_form('form', form = self['xep_0004'].make_form('form',
'Import data for {}'.format(jid)) 'Import data for {}'.format(jid))
form['instructions'] = '🗞️ Import feeds from OPML' form['instructions'] = '🗞️ Import feeds from OPML'
form.add_field(var='url', url = form.add_field(var='url',
ftype='text-single', ftype='text-single',
label='URL', label='URL',
desc='Enter URL to OPML file.', desc='Enter URL to OPML file.',
required=True) required=True)
url['validate']['datatype'] = 'xs:anyURI'
session['payload'] = form session['payload'] = form
session['next'] = self._handle_import_complete session['next'] = self._handle_import_complete
session['has_next'] = True session['has_next'] = True