changeset 720:7fc5e2c11a0e

use send_page / msg in SubscribeUser
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 25 May 2006 12:23:04 +0200
parents da5e56d3f5ca
children ddc7d654fabb
files MoinMoin/action/SubscribeUser.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SubscribeUser.py	Thu May 25 12:18:27 2006 +0200
+++ b/MoinMoin/action/SubscribeUser.py	Thu May 25 12:23:04 2006 +0200
@@ -86,9 +86,8 @@
 def execute(pagename, request):
     _ = request.getText
     if not request.user.may.admin(pagename):
-        request.http_headers()
-        request.theme.send_title(_("You are not allowed to perform this action."), pagename=pagename)
-        request.theme.send_closing_html()
+        thispage = Page(request, pagename)
+        return thispage.send_page(request, msg=_("You are not allowed to perform this action."))
     elif not request.form.has_key('users'):
         show_form(pagename, request)
     else: