From f299876e5aa350a08d771f13374fd3c034614855 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 15 Feb 2024 00:09:26 -0500 Subject: [PATCH] Add xs:anyURI type to import url field Allows using eg the URL keyboard layout on touch screen --- slixfeed/xmpp/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slixfeed/xmpp/client.py b/slixfeed/xmpp/client.py index 8ecda9c..e607abf 100644 --- a/slixfeed/xmpp/client.py +++ b/slixfeed/xmpp/client.py @@ -864,11 +864,12 @@ class Slixfeed(slixmpp.ClientXMPP): form = self['xep_0004'].make_form('form', 'Import data for {}'.format(jid)) form['instructions'] = '🗞️ Import feeds from OPML' - form.add_field(var='url', + url = form.add_field(var='url', ftype='text-single', label='URL', desc='Enter URL to OPML file.', required=True) + url['validate']['datatype'] = 'xs:anyURI' session['payload'] = form session['next'] = self._handle_import_complete session['has_next'] = True