send_page has no msg param any more, use theme.add_msg
authorThomas Waldmann <tw AT waldmann-edv DOT de>
Tue, 11 Nov 2008 22:00:33 +0100
changeset 4199f414aece63e0
parent 4198 5ccf04ad9941
child 4201 26b4a39b2f7d
send_page has no msg param any more, use theme.add_msg
MoinMoin/action/quickunlink.py
MoinMoin/action/unsubscribe.py
     1.1 --- a/MoinMoin/action/quickunlink.py	Sat Nov 08 14:43:49 2008 +0100
     1.2 +++ b/MoinMoin/action/quickunlink.py	Tue Nov 11 22:00:33 2008 +0100
     1.3 @@ -22,5 +22,7 @@
     1.4              msg = _('Your quicklink to this page could not be removed.')
     1.5      else:
     1.6          msg = _('You need to have a quicklink to this page to remove it.')
     1.7 +    if msg:
     1.8 +        request.theme.add_msg(msg)
     1.9 +    Page(request, pagename).send_page()
    1.10  
    1.11 -    Page(request, pagename).send_page(msg=msg)
     2.1 --- a/MoinMoin/action/unsubscribe.py	Sat Nov 08 14:43:49 2008 +0100
     2.2 +++ b/MoinMoin/action/unsubscribe.py	Tue Nov 11 22:00:33 2008 +0100
     2.3 @@ -28,6 +28,7 @@
     2.4      else:
     2.5          # The user is not subscribed
     2.6          msg = _('You need to be subscribed to unsubscribe.')
     2.7 +    if msg:
     2.8 +        request.theme.add_msg(msg)
     2.9 +    Page(request, pagename).send_page()
    2.10  
    2.11 -    Page(request, pagename).send_page(msg=msg)
    2.12 -