comparison MoinMoin/action/recoverpass.py @ 2967:a310264ad186

Added a few add_msg calls (by Federico Lorenzi).
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Mon, 24 Dec 2007 00:16:48 +0100
parents 388204baf00f
children 15d744f727c9
comparison
equal deleted inserted replaced
2966:ba14d391c2ba 2967:a310264ad186
64 64
65 submitted = form.get('account_sendmail', [''])[0] 65 submitted = form.get('account_sendmail', [''])[0]
66 66
67 if submitted: # user pressed create button 67 if submitted: # user pressed create button
68 msg = _do_recover(request) 68 msg = _do_recover(request)
69 page.send_page(msg=msg) 69 request.theme.add_msg(msg, "dialog")
70 page.send_page()
70 else: # show create form 71 else: # show create form
71 request.emit_http_headers() 72 request.emit_http_headers()
72 request.theme.send_title(_("Lost password"), pagename=pagename) 73 request.theme.send_title(_("Lost password"), pagename=pagename)
73 74
74 request.write(request.formatter.startContent("content")) 75 request.write(request.formatter.startContent("content"))