comparison MoinMoin/action/SubscribeUser.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 cbbde07e00c4
children 544b931cd965
comparison
equal deleted inserted replaced
1067:5bf357a720e7 1068:ecece5db5288
15 from MoinMoin.Page import Page 15 from MoinMoin.Page import Page
16 from MoinMoin import user 16 from MoinMoin import user
17 17
18 def show_form(pagename, request): 18 def show_form(pagename, request):
19 _ = request.getText 19 _ = request.getText
20 request.http_headers() 20 request.emit_http_headers()
21 request.theme.send_title(_("Subscribe users to the page %s") % pagename, pagename=pagename) 21 request.theme.send_title(_("Subscribe users to the page %s") % pagename, pagename=pagename)
22 22
23 request.write(""" 23 request.write("""
24 <form action="" method="POST" enctype="multipart/form-data"> 24 <form action="" method="POST" enctype="multipart/form-data">
25 <input type="hidden" name="action" value="SubscribeUser"> 25 <input type="hidden" name="action" value="SubscribeUser">
30 request.theme.send_footer(pagename) 30 request.theme.send_footer(pagename)
31 request.theme.send_closing_html() 31 request.theme.send_closing_html()
32 32
33 def show_result(pagename, request): 33 def show_result(pagename, request):
34 _ = request.getText 34 _ = request.getText
35 request.http_headers() 35 request.emit_http_headers()
36 36
37 request.theme.send_title(_("Subscribed for %s:") % pagename, pagename=pagename) 37 request.theme.send_title(_("Subscribed for %s:") % pagename, pagename=pagename)
38 38
39 from MoinMoin.formatter.text_html import Formatter 39 from MoinMoin.formatter.text_html import Formatter
40 formatter = Formatter(request) 40 formatter = Formatter(request)