comparison MoinMoin/action/Load.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 01f05e74aa9c
children a739558ca3dc
comparison
equal deleted inserted replaced
2965:4d60ea3a4ca7 2966:ba14d391c2ba
103 if success: 103 if success:
104 url = Page(self.request, self.pagename).url(self.request, relative=False) 104 url = Page(self.request, self.pagename).url(self.request, relative=False)
105 self.request.http_redirect(url) 105 self.request.http_redirect(url)
106 self.request.finish() 106 self.request.finish()
107 else: 107 else:
108 self.render_msg(self.make_form()) 108 self.render_msg(self.make_form(), "dialog")
109 109
110 def get_form_html(self, buttons_html): 110 def get_form_html(self, buttons_html):
111 _ = self._ 111 _ = self._
112 return """ 112 return """
113 %(querytext_pages)s 113 %(querytext_pages)s