comparison MoinMoin/action/thread_monitor.py @ 4176:85884c67228d

Replaced/removed calls to request.emit_http_headers
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 18 Jun 2008 00:28:07 +0200
parents ee0644a26e30
children
comparison
equal deleted inserted replaced
4175:5bcd612588fc 4176:85884c67228d
31 f.write(data) 31 f.write(data)
32 f.close() 32 f.close()
33 else: 33 else:
34 dump_fname = "nowhere" 34 dump_fname = "nowhere"
35 35
36 request.emit_http_headers()
37 request.write('<html><body>A dump has been saved to %s.</body></html>' % dump_fname) 36 request.write('<html><body>A dump has been saved to %s.</body></html>' % dump_fname)
38 37
39 def execute_wiki(pagename, request): 38 def execute_wiki(pagename, request):
40 _ = request.getText 39 _ = request.getText
41 # be extra paranoid in dangerous actions 40 # be extra paranoid in dangerous actions
42 actname = __name__.split('.')[-1] 41 actname = __name__.split('.')[-1]
43 if not request.user.isSuperUser(): 42 if not request.user.isSuperUser():
44 request.theme.add_msg(_('You are not allowed to use this action.'), "error") 43 request.theme.add_msg(_('You are not allowed to use this action.'), "error")
45 return Page.Page(request, pagename).send_page() 44 return Page.Page(request, pagename).send_page()
46
47 request.emit_http_headers()
48 45
49 request.theme.send_title("Thread monitor") 46 request.theme.send_title("Thread monitor")
50 request.write('<pre>') 47 request.write('<pre>')
51 48
52 if not thread_monitor.hook_enabled(): 49 if not thread_monitor.hook_enabled():