Add xs:anyURI type to import url field
Allows using eg the URL keyboard layout on touch screen
This commit is contained in:
parent
e8d5f082d0
commit
f299876e5a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue