|
a/webui.py |
|
b/webui.py |
|
... |
|
... |
279 |
bottle.response.content_type = 'text/html; charset=utf-8'
|
279 |
bottle.response.content_type = 'text/html; charset=utf-8'
|
280 |
else:
|
280 |
else:
|
281 |
bottle.response.content_type = 'text/plain; charset=utf-8'
|
281 |
bottle.response.content_type = 'text/plain; charset=utf-8'
|
282 |
return tdoc.text
|
282 |
return tdoc.text
|
283 |
#}}}
|
283 |
#}}}
|
284 |
#{{{ edit
|
284 |
#{{{ download
|
285 |
@bottle.route('/edit/<resnum:int>')
|
285 |
@bottle.route('/download/<resnum:int>')
|
286 |
def edit(resnum):
|
286 |
def edit(resnum):
|
287 |
if not hasrclextract:
|
287 |
if not hasrclextract:
|
288 |
return 'Sorry, needs recoll version 1.19 or later'
|
288 |
return 'Sorry, needs recoll version 1.19 or later'
|
289 |
query = get_query()
|
289 |
query = get_query()
|
290 |
qs = query_to_recoll_string(query)
|
290 |
qs = query_to_recoll_string(query)
|