Switch to unified view

a/webui.py b/webui.py
...
...
291
        xt = rclextract.Extractor(doc)
291
        xt = rclextract.Extractor(doc)
292
        path = xt.idoctofile(doc.ipath, doc.mimetype)
292
        path = xt.idoctofile(doc.ipath, doc.mimetype)
293
        pathismine = True
293
        pathismine = True
294
    bottle.response.headers['Content-Disposition'] = \
294
    bottle.response.headers['Content-Disposition'] = \
295
        'attachment; filename="%s"' % os.path.basename(path).encode('utf-8')
295
        'attachment; filename="%s"' % os.path.basename(path).encode('utf-8')
296
    print >> sys.stderr, "Sending %s with mimetype %s" % (path, doc.mimetype)
296
    path = path.encode('utf-8')
297
    f = open(path, 'r')
297
    f = open(path, 'r')
298
    if pathismine:
298
    if pathismine:
299
        os.unlink(path)
299
        os.unlink(path)
300
    return f
300
    return f
301
#}}}
301
#}}}