diff MoinMoin/action/newpage.py @ 2966:ba14d391c2ba

Refactor all modules to use the new add_msg interface in 1.7 (done by Frederico Lorenzi). Should not be backported to 1.6 but instead the separate patch from http://code.google.com/p/google-highly-open-participation-moinmoin/issues/detail?id=51 should be used.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sun, 23 Dec 2007 23:52:43 +0100
parents bb2e053067fb
children 948aac85d4d3
line wrap: on
line diff
--- a/MoinMoin/action/newpage.py	Sun Dec 23 23:51:55 2007 +0100
+++ b/MoinMoin/action/newpage.py	Sun Dec 23 23:52:43 2007 +0100
@@ -73,7 +73,8 @@
         if error:
             # Send back to the page you came from, with an error msg
             page = Page(self.request, self.referrer)
-            page.send_page(msg=error)
+            request.theme.add_msg(error, "error")
+            page.send_page()
         else:
             # Redirect to new page using edit action. No error checking
             # is needed because it is done later in new request.