changeset 4421:f414aece63e0

send_page has no msg param any more, use theme.add_msg
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 11 Nov 2008 22:00:33 +0100
parents 5ccf04ad9941
children 99d7f3f57303 26b4a39b2f7d
files MoinMoin/action/quickunlink.py MoinMoin/action/unsubscribe.py
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/quickunlink.py	Sat Nov 08 14:43:49 2008 +0100
+++ b/MoinMoin/action/quickunlink.py	Tue Nov 11 22:00:33 2008 +0100
@@ -22,5 +22,7 @@
             msg = _('Your quicklink to this page could not be removed.')
     else:
         msg = _('You need to have a quicklink to this page to remove it.')
+    if msg:
+        request.theme.add_msg(msg)
+    Page(request, pagename).send_page()
 
-    Page(request, pagename).send_page(msg=msg)
--- a/MoinMoin/action/unsubscribe.py	Sat Nov 08 14:43:49 2008 +0100
+++ b/MoinMoin/action/unsubscribe.py	Tue Nov 11 22:00:33 2008 +0100
@@ -28,6 +28,7 @@
     else:
         # The user is not subscribed
         msg = _('You need to be subscribed to unsubscribe.')
+    if msg:
+        request.theme.add_msg(msg)
+    Page(request, pagename).send_page()
 
-    Page(request, pagename).send_page(msg=msg)
-