forked from sch/Slixfeed
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:
commit
a4f870f26c
1 changed files with 2 additions and 1 deletions
|
@ -862,11 +862,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
|
||||
|
|
Loading…
Reference in a new issue