[Mpuls-commits] r6004 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Jul 31 12:29:54 CEST 2012


Author: bricks
Date: 2012-07-31 12:29:54 +0200 (Tue, 31 Jul 2012)
New Revision: 6004

Modified:
   base/trunk/mpulsweb/controllers/formularpage.py
Log:
Redirect after saving a formular

Avoid nasty "do you wan't to send data again" dialogs of the browser while
reloading a saved formularpage. Therefore redirect the user to the corresponding
select url.


Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py	2012-07-31 10:28:34 UTC (rev 6003)
+++ base/trunk/mpulsweb/controllers/formularpage.py	2012-07-31 10:29:54 UTC (rev 6004)
@@ -222,7 +222,7 @@
         if phase_changed:
             return phase_changed
 
-        return self._render_page(case, page_id)
+        redirect(url(controller="formularpage", action='select', id=page_id))
 
     def _before_set_data_hook(self, case_id, form_result):
         """Modify the form_result dict of the save method before it's applied.



More information about the Mpuls-commits mailing list