comparison MoinMoin/action/links.py @ 1068:ecece5db5288

use emit_http_headers
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 27 Jul 2006 01:18:14 +0200
parents cb7deb83447c
children 64507f46beb2
comparison
equal deleted inserted replaced
1067:5bf357a720e7 1068:ecece5db5288
17 if form.has_key('mimetype'): 17 if form.has_key('mimetype'):
18 mimetype = form['mimetype'][0] 18 mimetype = form['mimetype'][0]
19 else: 19 else:
20 mimetype = "text/html" 20 mimetype = "text/html"
21 21
22 request.http_headers(["Content-Type: %s; charset=%s" % (mimetype, config.charset)]) 22 request.emit_http_headers(["Content-Type: %s; charset=%s" % (mimetype, config.charset)])
23 23
24 if mimetype == "text/html": 24 if mimetype == "text/html":
25 request.theme.send_title(_('Full Link List for "%s"') % request.cfg.sitename) 25 request.theme.send_title(_('Full Link List for "%s"') % request.cfg.sitename)
26 request.write('<pre>') 26 request.write('<pre>')
27 27