Add xs:anyURI type to import url field

Allows using eg the URL keyboard layout on touch screen
This commit is contained in:
Stephen Paul Weber 2024-02-15 00:09:26 -05:00
parent e8d5f082d0
commit f299876e5a
No known key found for this signature in database
GPG key ID: D11C2911CE519CDE

View file

@ -864,11 +864,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